「横幅」の滑らかな変化 下記の黄色の箇所に何を入力したらいいでしょうか https://gyazo.com/af059d475267885d35148da25654d544
「横幅」の滑らかな変化 下記の黄色の箇所に何を入力したらいいでしょうか https://gyazo.com/af059d475267885d35148da25654d544
ベストアンサー
nis********さん >・・・・「横幅」の滑らかな変化・・・・・・・・・ ご参考に↓ https://www.tohoho-web.com/css/prop/transition.htm <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> div { background-color: #fff; border:5px solid; height: 50px; text-align:center; transition: width linear 2s; width: 50px; } div:hover { background-color: #66f; width: 200px; height: 200px; } </style> </head> <body> <div class="test">Hello</div> </body> </html>
質問者からのお礼コメント
ありがとうございました。
お礼日時:1/28 11:22