Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
feat(anim): adds staggering animations
Browse files Browse the repository at this point in the history
 This adds staggering animations to the flickr gallery example
  • Loading branch information
zewa666 committed May 4, 2015
1 parent 996407d commit 5324e13
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/flickr.html
@@ -1,7 +1,7 @@
<template>
<section>
<h2>${heading}</h2>
<div class="row">
<div class="row au-stagger">
<div class="col-sm-6 col-md-3 flickr-img au-animate" repeat.for="image of images">
<a class="thumbnail">
<img src.bind="image.media.m"/>
Expand Down
11 changes: 11 additions & 0 deletions styles/styles.css
Expand Up @@ -52,7 +52,18 @@ section.au-enter-active {
}

/* animate flickr image entry */
div.au-stagger {
/* 200ms will be applied between each successive enter operation */
-webkit-animation-delay:100ms;
animation-delay:100ms;
}

.flickr-img.au-enter {
opacity: 0!important;
}

.flickr-img.au-enter-active {
opacity: 1!important;
-webkit-animation: bounce 1s;
animation: bounce 1s;
}
Expand Down

0 comments on commit 5324e13

Please sign in to comment.