<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
<!-- animate.css -->
<!--
the data attributes are set with defaults
if transition('#animate') is called then these transitions will happen
but the example buttons below dynamically change these data attributes to different transitions
note the data-library-class entry, animate.css requires "animated" class
-->
<div id="animate" class="container" data-leave-class="fadeOut" data-enter-class="fadeIn" data-library-class="animated">
<div id="animate1" class="box"></div>
<div id="animate2" class="box hidden"></div>
</div>
<!-- these are the example buttons for animate.css transitions -->
<div>
<button id="animate_fade">fade</button>
<button id="animate_fade_slide">fade slide</button>
<button id="animate_bounce">bounce</button>
</div>
<!-- animista -->
<!--
the data attributes are set with defaults
if transition('#animista') is called then these transitions will happen
but the example buttons below dynamically change these data attributes to different transitions
note there's no data-library-class entry, animista doesn't require one
-->
<div id="animista" class="container" data-leave-class="scale-out-center" data-enter-class="scale-in-center">
<div id="animista1" class="box"></div>
<div id="animista2" class="box hidden"></div>
</div>
<!-- these are the example buttons for animista transitions -->
<div>
<button id="animista_scale">scale</button>
<button id="animista_slit">slit</button>
<button id="animista_flicker">flicker</button>
</div>