front night vol1
TRANSCRIPT
所属:株式会社コロプラ
:@mattari_panda
自己紹介
3月入社 前職はWebの受託制作 PC・スマートフォン サイト作ってました
書籍:CSS3デザインブック 仕事で絶対に使うプロのテクニック (ちょこっと)
CSSへの期待度は高い
✤HTMLは文書構造。適切なタグを適切な量マークアップできるか結構重要
✤JavaScriptはあくまで「ひかえめ」に。PCほどパワフルに動かない
✤「表現&演出」はCSSでがんばれるところまで、がんばろう
backgroundおさらい
✤グラデーションはbackground-image
✤つまり複数配置OK
✤色指定もrgba()使えます
✤background-sizeでサイズ調整
✤ insetも頑張ればなんとか
Multipul Backgroundでいろいろ
http://jsdo.it/mattari_panda/zsas
擬似要素::afterで「すごろく」を表現するhttp://jsdo.it/mattari_panda/y3nj
グラデーションの袋文字
http://jsdo.it/mattari_panda/y3nj
グラデーションの袋文字
/* CSS --*/#hoge>span{-webkit-background-clip: text;-webkit-text-fill-color:transparent;background-image: linear-gradient();-webkit-text-stroke-width: 2px;-webkit-text-stroke-color: #f5e768;
}
Animationおさらい
✤transitionとanimationがある
✤transitionは単純なアニメ
✤animationは複雑なアニメ
✤スマホではとにかく軽量
✤でも落とし穴いっぱい
✤Androidでの巻き戻り
✤animation-fill-mode
✤ディレイさせたい時
Keyframe Animationの落とし穴連続したアニメーション
http://jsdo.it/mattari_panda/oPCb
最初と最後のコマの状態を制御
animation-fill-mode
http://dev.w3.org/csswg/css3-animations/#animation-fill-mode-property
/* CSS --*/#hoge{animation-fill-mode:none;/*default*/animation-fill-mode:fowards;animation-fill-mode:backwards;animation-fill-mode:both;
}