下から上に動く四角をCSSのanimationで作りたいのですが、
はじめは、不可視領域の「1」から始まり「2」に消えていきます。
それを2〜3周して、最後「A」で止めたいです。
ただし最後「A」にパッと現れる動きしか作れなくて
「1」から「A」へ滑らかに進み、止まるという手法を
どなたかご存知でしたら教えてほしいです。
CSSで実現不可の場合、jsでどうにかなるのであれば
その手法も教えていただけましたら幸いです。
#hero img { width: 400px; height: 600px; position: absolute; bottom: 0; left: 0; animation-delay: 4s; animation-name: up; animation-duration: 5s; animation-iteration-count: 3; animation-timing-function: linear; } @keyframes up { 0% { bottom: -600px; } 100% { bottom: 100vh; } }
回答2件
あなたの回答
tips
プレビュー

2020/03/18 01:43
2020/03/18 01:59
2020/03/18 02:07