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
CSS3 - Transitions
Search
Vicente Mundim
May 24, 2013
Technology
0
98
CSS3 - Transitions
O que são CSS3 transitions? Por que e como usar esse recurso para criar interfaces mais ricas.
Vicente Mundim
May 24, 2013
Tweet
Share
More Decks by Vicente Mundim
See All by Vicente Mundim
Index your Salesforce data in Elasticsearch using the Streaming API
vicentemundim
0
1.4k
Other Decks in Technology
See All in Technology
SREじゃなかった僕らがenablingを通じて「SRE実践者」になるまでのリアル / SRE Kaigi 2026
aeonpeople
6
2.2k
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
170
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
5.1k
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
190
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.6k
使いにくいの壁を突破する
sansantech
PRO
1
130
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
140
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
What happened to RubyGems and what can we learn?
mikemcquaid
0
250
ZOZOにおけるAI活用の現在 ~開発組織全体での取り組みと試行錯誤~
zozotech
PRO
5
4.9k
Featured
See All Featured
Designing Experiences People Love
moore
144
24k
Speed Design
sergeychernyshev
33
1.5k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
170
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Designing for Timeless Needs
cassininazir
0
130
Building Applications with DynamoDB
mza
96
6.9k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Transcript
CSS 3 Transitions V i c e n t e
M u n d i m
Por que?
Quero mover um elemento para a direita... .box { position:
absolute; left: 0; }
Uhmm... Sem graça, não curti :( .box { position: absolute;
left: 0; } .box { position: absolute; left: 200px; }
Agora, com transitions! .box { position: absolute; left: 0; transition:
left 1s ease-in-out; } .box { position: absolute; left: 200px; } Muito melhor!
Agora, com transitions! .box { position: absolute; left: 0; transition:
left 1s ease-in-out; } .box { position: absolute; left: 200px; } Muito melhor!
Como definir transition-property: Propriedade que terá a transição transition-duration: Duração
em segundos ou milisegundos da transição transition-timing-function: Função que determina como os valores são computados. transition-delay: Tempo até que a transição comece a acontecer
Definindo no CSS .all { transition: all 1s ease-out; }
.left { transition: left 1s ease-in 0.5s; } .right.bottom { transition-property: right, bottom; transition-delay: 0.5s; transition-duration: 1s; transition-timing-function: ease-out, ease-in; }
O que pode ser alterado Cores em geral (background-color, border-
color, color, etc) Largura, altura, posicionamento (left, right, top, bottom), margem, padding. Tamanhos de fonte, line-height, word- spacing, etc https://developer.mozilla.org/en-US/docs/ Web/CSS/CSS_animated_properties
Quem pode ser alterado Praticamente qualquer elemento que possa ter
alguma propriedade animada.
Gotchas Propriedade display, ou como fazer um fade in/out. Onde
colocar a propriedade transition?
Compatibilidade http://caniuse.com/#feat=css-transitions
Resources https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/ Using_CSS_transitions http://blog.alexmaccaw.com/css-transitions http://www.css3maker.com/css3-transition.html
Obrigado!