Skip to content

Instantly share code, notes, and snippets.

@alvarotrigo
Created April 11, 2018 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvarotrigo/723540e317855888892f8949e3740527 to your computer and use it in GitHub Desktop.
Save alvarotrigo/723540e317855888892f8949e3740527 to your computer and use it in GitHub Desktop.
Tumblr animations
.blogs-post {
background: #fff;
border-radius: 3px;
margin: 0 0 20px;
width: 300px;
transform: translateX(200px);
}
.blogs-post-column{
opacity: 0;
transform: translateX(0);
float: left;
margin-right: 20px;
width: 300px;
transform: translateX(100px);
}
.blogs-graphic.active .blogs-post-column,
.blogs-graphic.active .blogs-post{
opacity: 1;
transform: translateX(0);
transition: opacity .7s cubic-bezier(.165,.84,.44,1),transform .7s cubic-bezier(.165,.84,.44,1);
}
.blogs-graphic.active .blogs-post-column:first-child{
transition-delay: .08s;
}
.blogs-graphic.active .blogs-post-column:nth-child(2){
transition-delay: .16s;
}
.blogs-graphic.active .blogs-post-column:nth-child(3){
transition-delay: .24s;
}
.blogs-graphic.active .blogs-post-column:nth-child(4){
transition-delay: .32s;
}
.blogs-graphic.active .blogs-post:first-child {
transition-delay: .08s;
}
.blogs-graphic.active .blogs-post:nth-child(2) {
transition-delay: .16s;
}
.blogs-graphic.active .blogs-post:nth-child(3){
transition-delay: .24s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment