前提・実現したいこと
htmlとcssでkeyframesを使って画像を正常に動かしたい
発生している問題・エラーメッセージ
htmlとcssでkeyframesを使って動きをつけたのですが<!doctype html>を記入すると記入していないときはうまく動いている動きが正常に動かなくなる
該当のソースコード
html
<!doctype html>を記入css
@keyframes move1{
0%{top:0; right:0;}
20%{top:200; right:100;}
40%{top:400; right:100;}
60%{top:600; right:200;}
80%{top:900; right:350;}
100%{top:1250; right:100; transform:rotate(360deg);}
}
.kamon1{
position:absolute;
animation-name: move1;
animation-duration: 19s;
animation-timing-function: linear;
animation-direction: alternate;
animation-iteration-count:infinite;
}
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/20 07:56