Code Document

Data Hv Fn

  • Example 1:

    Trigger on "click".

    scrollTo

  • Code:

    <p id="scrollA" class="swatch3-bg">Trigger on "click".</p>
    <a class="button" href="#" data-vfn="e:click,f:scrollTo,a:spring,s:#scrollA">scrollTo</a>
  • Example 2:

    Trigger on "click".

    toggleClass

  • Code:

    <p id="triggerA" class="active swatch3-bg">Trigger on "click".</p>
    <a class="button" href="#" data-vfn="e:click,f:toggleClass,a:swatch3-bg,s:#triggerA">toggleClass</a>
  • Example 3:

    Trigger on "mouseover".

    toggleClass

  • Code:

    <p id="triggerB" class="active swatch3-bg">Trigger on "mouseover".</p>
    <a class="button" href="#" data-vfn="e:mouseover,f:toggleClass,a:swatch3-bg,s:#triggerB">toggleClass</a>
  • Example 3 (b):

    Trigger on "mouseover" | Trigger on "mouseout"

    toggleClass

  • Code:

    <p id="triggerB" class="active swatch3-bg">Trigger on "mouseover" | Trigger on "mouseout"</p>
    <a class="button" href="#" data-vfn="e:mouseover,f:removeClass,a:swatch3-bg,s:#triggerB2;e:mouseout,f:addClass,a:swatch3-bg,s:#triggerB2">toggleClass</a>
  • Example 4:

    Trigger on "click".

  • Code:

    <p id="triggerC" class="active swatch3-bg">Trigger on "click".</p>
    <a id="triggerAdd" href="#" data-vfn="e:click,f:addClass,a:swatch3-bg,s:#triggerC">addClass</a>
    <a href="#" data-vfn="e:click,f:removeClass,a:swatch3-bg,s:#triggerC;e:click,f:removeClass,a:active,s:#triggerAdd">removeClass</a>

Categories

©
    • Los Angeles

    • CA

    • United States

  • Website

  • Facebook

  • Data Hv Fn | Frontend UI Toolkit + Wordpress Framework

  • A wordpress framework used to structure simple Javascript and CSS prototypes. Hive is lite, only includes necessities and encourages custom styling.