SlideShare una empresa de Scribd logo
1 de 38
Descargar para leer sin conexión
De @keyframes
a fotogramas clave
@dgfrancisco
@dgfrancisco
www.eltiempo.com
www.elespectador.com
www.enter.co
www.caracoltv.com
www.elheraldo.co
www.shock.com
www.pio.la
www.mercalist.com
www.mercatiendas.com
www.mercaraiz.com
www.mercapets.com
oja.la
Mobile Vs Web
En los detalles esta el diablo
¿Por qué?
Wikipedia:
Un keyframe en animación y en video
es el punto inicial y final
de cualquier animación
@Keyframes
Para CSS,
Es la definición de un grupo de propiedades
a las que se le modifican valores
para recrear una animación
@Keyframes
A B
@Keyframes
Formula de la animación
animation:;
La forma en que se aplica la animación
+
@font-face {
font-family: miFuente;
src: url(../ruta/miFuente.woff);
}
div { font-family: miFuente;}
@keyframe nombre {
0%{ propiedad: valor;}
25%{ propiedad: valor;}
50%{ propiedad: valor;}
75%{ propiedad: valor;}
100%{ propiedad: valor;}
}
div { animation:
animation-name: nombre;
animation-duration: duración;
animation-timing-function: velocidad;
animation-delay: espera;
animation-iteration-count: repetición;
animation-direction: sentido;
animation-play-state: stop/play;
}
@keyframe nombre {
0%{ propiedad: valor;}
100%{ propiedad: valor;}
}
Propiedades:
Transformaciones
Propiedades
Transiciones
Propiedades:
Transformations
transform: rotate(angle);
transform: scale(value, [value]);
transform: skewX(value);
transform: skewY(value);
transform: translate(value [, value]);
transform: perspective(value);
matrix() - translate3d - scale3d - rotate3d
transform: rotate(angle);
transform: rotate(angle);
http://codepen.io/dgfrancisco/full/gDkwy
@keyframes rotar {
0% { transform: rotate(0deg); }
100% { transform: rotate(180deg);}
}
.ojala{
animation: rotar 1s linear infinite;
-webkit-animation: rotar 1s linear infinite;
}
transform: scale(value, [value]);
transform: scale(value, [value]);
http://codepen.io/dgfrancisco/full/vechn
@keyframes escalar {
0% { transform: scale(0,0); }
100% { transform: scale(1,1);}
}
.ojala{
animation: escalar 1s linear infinite;
-webkit-animation: escalar 1s linear infinite;
}
transform: skew(value);
transform: skew(value);
http://codepen.io/dgfrancisco/full/GFkwC
@keyframes sesgar {
0%, 50%, 100% { transform: skew(35deg,1deg); }
25%, 75% {transform: skew(-35deg,20deg);}
}
.ojala{
animation: sesgar 1s linear infinite;
-webkit-animation: sesgar 1s linear infinite;
}
transform: translate(value[, value]);
transform: translate(value, [value]);
http://codepen.io/dgfrancisco/full/fBesw
@keyframes trasladar {
0% {}
100% {transform: translate(300px,144px);}
}
.ojala{
animation: trasladar 1s linear infinite;
-webkit-animation: trasladar 1s linear infinite;
}
transform: perspective(value);
transform: perspective(value);
http://codepen.io/dgfrancisco/full/kGjnz
@keyframes perspectiva {
100% {transform: rotateX(150deg);}
}
.ojala{ animation: perspectiva .6s linear infinite; }
.contenedor{
perspective:150px;
-webkit-perspective:150px;
}
DEMOS
http://codepen.io/collection/trdlv/
http://daneden.github.io/animate.css/
http://www.justinaguilar.com/animations/index.html
http://www.css3maker.com/index.html
¿Diseñador?

Más contenido relacionado

Similar a BogotaCSS - De @keyframes a fotogramas clave

Web matrix session2
Web matrix session2Web matrix session2
Web matrix session2Gonzalo C.
 
Variables nativas CSS, Front-End con superpoderes para tu WordPress
Variables nativas CSS, Front-End con superpoderes para tu WordPressVariables nativas CSS, Front-End con superpoderes para tu WordPress
Variables nativas CSS, Front-End con superpoderes para tu WordPressWordPress Tarragona
 
Como insertar objetos y películas flash etiqueta object
Como insertar objetos y películas flash etiqueta objectComo insertar objetos y películas flash etiqueta object
Como insertar objetos y películas flash etiqueta objectDocente_ruben
 
Pixel Shaders con Silverlight
Pixel Shaders con SilverlightPixel Shaders con Silverlight
Pixel Shaders con SilverlightMatias Iacono
 

Similar a BogotaCSS - De @keyframes a fotogramas clave (8)

Web matrix session2
Web matrix session2Web matrix session2
Web matrix session2
 
Variables nativas CSS, Front-End con superpoderes para tu WordPress
Variables nativas CSS, Front-End con superpoderes para tu WordPressVariables nativas CSS, Front-End con superpoderes para tu WordPress
Variables nativas CSS, Front-End con superpoderes para tu WordPress
 
Como insertar objetos y películas flash etiqueta object
Como insertar objetos y películas flash etiqueta objectComo insertar objetos y películas flash etiqueta object
Como insertar objetos y películas flash etiqueta object
 
CSS3
CSS3CSS3
CSS3
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
html5-css3
html5-css3html5-css3
html5-css3
 
Pixel Shaders con Silverlight
Pixel Shaders con SilverlightPixel Shaders con Silverlight
Pixel Shaders con Silverlight
 
Capas en html
Capas en htmlCapas en html
Capas en html
 

BogotaCSS - De @keyframes a fotogramas clave