Skip to content

Instantly share code, notes, and snippets.

@valdiney
Created July 28, 2013 15:48
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 valdiney/6099030 to your computer and use it in GitHub Desktop.
Save valdiney/6099030 to your computer and use it in GitHub Desktop.
Project: SimpleAnimationCSS 0.1 BETA
/*
Project: SimpleAnimationCSS 0.1 BETA
Author: Valdinei França
Data: 28/07/2013
Licensed under the MIT license
Copyright (c) 2013
*/
/* Make twinkle in the images */
.twinkle-image {
-webkit-animation:twinkle-image 1.5s infinite;
-moz-animation:twinkle-image 1.5s infinite;
-o-animation:twinkle-image 1.5s infinite;
-ms-animation:twinkle-image 1.5s infinite;
}
@-webkit-keyframes twinkle-image {/* For Chrome and Safare */
90% {
opacity:0.80;
}
20% {
opacity:0.90;
}
}
@-moz-keyframes twinkle-image {/* For Mozilla Fire fox */
90% {
opacity:0.80;
}
20% {
opacity:0.90;
}
}
@-o-keyframes twinkle-image {/* For Opera */
90% {
opacity:0.80;
}
20% {
opacity:0.90;
}
}
@-ms-keyframes twinkle-image {/* For Internet Explore */
90% {
opacity:0.80;
}
20% {
opacity:0.90;
}
}
/* End twinkle-image */
/* ========================================================================= */
/* Make twinkle in the texts */
.twinkle-text {
-webkit-animation:twinkle-text 1.5s infinite;
-moz-animation:twinkle-text 1.5s infinite;
-o-animation:twinkle-text 1.5s infinite;
-ms-animation:twinkle-text 1.5s infinite;
}
@-webkit-keyframes twinkle-text {/* For Chrome and Safare */
90% {
opacity:0.70;
}
20% {
opacity:0.90;
}
}
@-moz-keyframes twinkle-image {/* For Mozilla Fire fox */
90% {
opacity:0.70;
}
20% {
opacity:0.90;
text-shadow:gray 1px 1px 3px;
}
}
@-o-keyframes twinkle-image {/* For Opera */
90% {
opacity:0.70;
}
20% {
opacity:0.90;
text-shadow:gray 1px 1px 3px;
}
}
@-ms-keyframes twinkle-image {/* For Internet Explore */
90% {
opacity:0.70;
}
20% {
opacity:0.90;
text-shadow:gray 1px 1px 3px;
}
}
/* End twinkle-text */
/* ========================================================================= */
/* 's class brings an element from right to left */
/* está classe traz um elemento da direita para esquerda */
.comes-here {
-webkit-animation:comes-here 1.5s 1;
-moz-animation:comes-here 1.5s 1;
-o-animation:comes-here 1.5s 1;
-ms-animation:comes-here 1.5s 1;
-webkit-animation-delay:2s;
-moz-animation-delay:2s;
-o-animation-delay:2s;
-ms-animation-delay:2s;
}
@-webkit-keyframes comes-here {/* For Chrome and Safare */
10% {
margin-left:300px;
position:absolute;
opacity:0.0;
}
80% {
opacity:0.90;
}
20% {
border-radius:50px;
}
}
@-moz-keyframes comes-here {/* For Mozilla Fire fox */
10% {
margin-left:300px;
position:absolute;
opacity:0.0;
}
80% {
opacity:0.90;
}
20% {
border-radius:50px;
}
}
@-o-keyframes comes-here {/* For Opera */
10% {
margin-left:300px;
position:absolute;
opacity:0.0;
}
80% {
opacity:0.90;
}
20% {
border-radius:50px;
}
}
@-ms-keyframes comes-here {/* For Internet Explore */
10% {
margin-left:300px;
position:absolute;
opacity:0.0;
}
80% {
opacity:0.90;
}
20% {
border-radius:50px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment