console.clear();
Vue.component('box1', {
template: '<div class="box box1">box1</div>'
});
Vue.component('box2', {
template: '<div class="box box2">box2</div>'
});
new Vue({
el: "#app",
data: {
box1: true,
currentTransition: 'chevron',
mode: 'out-in',
descriptions: {
chevron: '<p>The chevron animation uses the polygon shape with six vertices.</p><p>The leave transition starts with all the vertices forming a square to cover the box. The next step of the animation animates three of the points into a chevron pointing to the right. The animation completes with moving all six points out of the box area to the right.</p><p>The enter transition does the same in reverse; the chevron slides in from the left, stops, and then the three vertices animate the shape back into a square.</p>',
spiral: '<p>The sprial animation uses the polygon shape with fifteen vertices arranged in a spiral and eight keyframes in the animation.</p><p>In the leave transition animates the spiral so that at each keyframe the vertices are moved on top of neighboring vertices. Over time this gives the appearance of a spiral unwinding to the upper left of the box area.</p><p>The enter transition does the same in reverse; starting in the upper left and winding inward to the center.</p>',
slots: '<p>The slots animation uses the polygon shape with sixteen vertices arranged in a series of vertical lines of overlapping vertices forming slots.</p><p>The leave transition first animates every other vertical slot from the top down to the bottom. The next keyframe of the animation animates the leftover slots downard in the same motion. This provides the appearance of alternating slots disappearing off the bottom of the box area.</p><p>The enter transition does the same in reverse; alternating slots animate upwards to the top of the box area.</p>',
shutters: '<p>The shutters animation uses the polygon shape with twenty vertices arranged in a series of vertical lines of...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.