林立秦
lichin-lin
嗚嗚
(還是其實在座都是大神...QQ)
結束後可以陪我去大安森林公園抓嗎?
Compile Everything,
Automatic Prefixing,
Browser Refresh...
.btn
// button property
width auto
height auto
color white
font-size 2.5em
padding 20px 50px
cursor pointer
overflow hidden
position relative
// border~~
border-radius 5px
border 5px solid darken(main-blue, 20%)
transition all 0.75s easea transition can be applied to any CSS property which has a discrete value which changes between the start and end states.
positional properties, layout properties, transform...
display:none
transition: [property] [duration] [timing-function][delay];
default: all 0s ease 0s
an animation can define a start and end state but it can also specify any number of intermediary state to create more sophisticated effects
附上一個 codepen example
@keyframes Animation {
0% {
}
70% {
}
100% {
}
}
一開始的狀態
中間再給予狀態
最後一個狀態
圖片來源
http://giphy.com/embed/jUwpNzg9IcyrK
https://github.com/pugjs/pug/issues/1882
https://commons.wikimedia.org/wiki/File:Stylus-logo.svg
http://simpsons.wikia.com/wiki/File:The_Devil_and_Homer_Simpson_18.JPG
http://nicolasgallagher.com/multiple-backgrounds-and-borders-with-css2/
http://rebloggy.com/post/my-gif-pokemon-gif-pokeball-ash-ketchum-professor-oak/23210337461