Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
5 minutos sobre CSS3 transitions
Search
Plataformatec
August 07, 2012
0
120
5 minutos sobre CSS3 transitions
Plataformatec
August 07, 2012
Tweet
Share
More Decks by Plataformatec
See All by Plataformatec
O case da Plataformatec com o Elixir - Como uma empresa brasileira criou uma linguagem que é usada no mundo inteiro @ Elixir Brasil 2019
plataformatec
5
960
O case da Plataformatec com o Elixir - Como uma empresa brasileira criou uma linguagem que é usada no mundo inteiro @ QCon SP 2018
plataformatec
1
220
Elixir @ iMasters Intercon 2016
plataformatec
1
260
GenStage and Flow by @josevalim at ElixirConf
plataformatec
17
2.7k
Elixir: Programação Funcional e Pragmática @ 2º Tech Day Curitiba
plataformatec
2
290
Elixir: Programação Funcional e Pragmática @ Encontro Locaweb 2016
plataformatec
4
280
What's ahead for Elixir: v1.2 and GenRouter
plataformatec
15
2k
Arquiteturas Comuns de Apps Rails @ RubyConf BR 2015
plataformatec
6
370
Pirâmide de testes, escrevendo testes com qualidade @ RubyConf 2015
plataformatec
10
2.3k
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5.1k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Faster Mobile Websites
deanohume
305
30k
Done Done
chrislema
182
16k
jQuery: Nuts, Bolts and Bling
dougneiner
62
7.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.3k
The Pragmatic Product Professional
lauravandoore
32
6.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
YesSQL, Process and Tooling at Scale
rocio
170
14k
How STYLIGHT went responsive
nonsquared
96
5.3k
Transcript
CSS Transitions 5 minutos sobre Saturday, August 4, 12
@lucasmazza Saturday, August 4, 12
Saturday, August 4, 12
@casadocodigo Saturday, August 4, 12
Abstract CSS Transitions allows property changes in CSS values to
occur smoothly over a specified duration. http://www.w3.org/TR/css3-transitions/ o quê? Saturday, August 4, 12
TL,DR: animações disparadas por mudanças no estilo de um elemento.
o quê? Saturday, August 4, 12
QconSP 2012 margin-left: 0; Saturday, August 4, 12
QconSP 2012 margin-left: 0; margin-left: 100px; Saturday, August 4, 12
QconSP 2012 margin-left: 0; margin-left: 100px; margin-left: 0; Saturday, August
4, 12
por quê? Saturday, August 4, 12
✔ Performance por quê? Saturday, August 4, 12
✔ Performance ✔ Efeitos com “:hover” sem JavaScript por quê?
Saturday, August 4, 12
✔ Performance ✔ Efeitos com “:hover” sem JavaScript ✔ Não
intrusivas por quê? Saturday, August 4, 12
transition: opacity 0.5s ease, top 0.5s linear; sintaxe Saturday, August
4, 12
transition: opacity 0.5s ease, top 0.5s linear; Propriedade sintaxe Saturday,
August 4, 12
transition: opacity 0.5s ease, top 0.5s linear; Propriedade duração sintaxe
Saturday, August 4, 12
transition: opacity 0.5s ease, top 0.5s linear; Propriedade cálculo da
velocidade duração sintaxe Saturday, August 4, 12
transition: all 0.5s ease; sintaxe Saturday, August 4, 12
sintaxe transition transition-property transition-duration transition-timing-function transition-delay Saturday, August 4, 12
JavaScript? $(".thing").fadeIn(); Saturday, August 4, 12
JavaScript? $(".thing").fadeIn(); // Pode se tornar $(".thing").addClass('visible'); Saturday, August 4,
12
.thing { opacity: 0; transition: opacity 0.2 linear; } .visible
{ opacity: 1; } Saturday, August 4, 12
callbacks? $(".thing").fadeIn(function() { // ... }); Saturday, August 4, 12
callbacks? $(".thing").fadeIn(function() { // ... }); $('.thing').one('transitionend', function() { //
... }).addClass('visible'); Saturday, August 4, 12
</3 prefixos • Chrome/Safari - 'webkitTransitionEnd' • Firefox - 'transitionend'
• Opera - 'oTransitionEnd' • IE 10 - 'MSTransitionEnd' Saturday, August 4, 12
bootstrap-transition.js if($.support.transition) { // ... } Saturday, August 4, 12
bootstrap-transition.js console.log($.support.transition.end); // "webkitTransitionEnd" if($.support.transition) { // ... } Saturday,
August 4, 12
exemplos 1. http://twitter.github.com/bootstrap/javascript.html 2. http://dabblet.com/gist/3203038 3. http://dabblet.com/gist/3203076 Saturday, August 4,
12
animatable @leaverou http://leaverou.github.com/animatable/ Saturday, August 4, 12
Obrigado! Saturday, August 4, 12