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
910
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
250
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
270
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.2k
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
Statistics for Hackers
jakevdp
796
220k
Speed Design
sergeychernyshev
24
610
What's in a price? How to price your products and services
michaelherold
243
12k
A Philosophy of Restraint
colly
203
16k
Designing for humans not robots
tammielis
250
25k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Building Adaptive Systems
keathley
38
2.3k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
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