LoginSignup
11
1

【CSSデザイン】回転しながら変形する癒しのボールの作り方

Last updated at Posted at 2023-12-12

はじめに

CSSで遊ぶのが好きな女が、
回転しながら変形する癒しのボールをCSSだけで作成しました。

コードはこちら

See the Pen Untitled by 森由唯 (@ubdhtixg-the-scripter) on CodePen.

回転する仕組み

マウスホバー時に

  • transform: translate() で水平方向に移動する
  • transform: rotate() で180度回転する
transform: translate(200%, 0%) rotate(180deg);

これだけです:relaxed:

@keyframes でアニメーションさせても良いと思います。
グラデーションだけでなく、画像に置き換えてもかわいいかも。

11
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
1