前提・実現したいこと
疑似要素のwidthを100%から0にしている要素を出したいのですが、右から左にアニメーションが実行されます。
これを逆にしたいのですがどうすれば良いのでしょうか?
発生している問題・エラーメッセージ
エラーメッセージ
該当のソースコード
html <p></p> scss p { position: relative; width: 100px; margin:0 auto; &:after { background-color: blue; content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%; width: 100%; animation-name: wid; animation-duration: 1s; animation-fill-mode: forwards; animation-iteration-count: 1; } @keyframes wid { 0% { width: 100%; } 100% { width: 0%; } } } ソースコード
試したこと
animation-directionなど試してみたのですがうまく行きませんでした。
補足情報(FW/ツールのバージョンなど)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/21 05:21
2019/06/21 05:25
2019/06/21 05:27