7
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

開発者の環境や技術Advent Calendar 2019

Day 16

cssうんちに魂宿してみた

Last updated at Posted at 2019-12-16

💩おさらい💩

前回cssでうんちを書いたぞ!
cssだけでうんち書いてみた
今日はこれをよりうんちらしくするべく、魂を宿してみたい!

💩cssでぷる〜んていうアニメーション💩

キーフレームを頑張って打て、scale()を変えればできる!

@keyframes jelly {
  0% {
    transform: scale(1, 1);
  }
  8% {
    transform: scale(1, 1);
  }
  10% {
    transform: scale(1.1, 0.9);
  }
  13% {
    transform: scale(0.9, 1.1);
  }
  17.5% {
    transform: scale(1, 1);
  }
  19% {
    transform: scale(1, 1);
  }
  58% {
    transform: scale(1, 1);
  }
  60% {
    transform: scale(1.1, 0.9);
  }
  63% {
    transform: scale(0.9, 1.1);
  }
  67.5% {
    transform: scale(1, 1);
  }
  69% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}

💩宿した💩

See the Pen unchi-soul by petapetapeta (@petapetapeta) on CodePen.

マウスを乗せるとぷる〜んってなるようになりました!
可愛いですね💩

7
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
7
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?