<div class="cp_item">cp_item</div>
.cp_item {
line-height: 60px;
width: 100px;
height: 60px;
cursor: pointer;
animation: cp_anime 3s ease infinite alternate;
text-align: center;
color: #ffffff;
border-radius: 6px;
background: #FF7043;
}
@-webkit-keyframes cp_anime_key {
30% {
background: #29b6f6;
width: 150px;
}
100% {
background: #f06292;
width: 300px;
}
}
@keyframes cp_anime_key {
30% {
background: #29b6f6;
width: 150px;
}
100% {
background: #f06292;
width: 300px;
}
}
CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。
@CopypetJp More Info