日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > CSS >内容正文

CSS

html制作卡通图案代码,CSS画的卡通动画图案

發(fā)布時間:2025/3/8 CSS 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html制作卡通图案代码,CSS画的卡通动画图案 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

CSS

語言:

CSSSCSS

確定

* {

padding: 0;

margin: 0;

}

body {

background: #26ad00;

}

.head {

background: #ff8cb2;

width: 70vw;

height: 50vw;

position: absolute;

top: calc(50% - 25vw);

left: calc(50% - 35vw);

z-index: 2;

border-radius: 90% 90% 80% 80% / 120% 120% 60% 60%;

animation: monster 1s infinite;

}

.head:after {

content: "";

background: #ffa1c7;

width: 25%;

height: 20%;

position: absolute;

top: 18%;

right: 15%;

border-radius: 100%;

transform: rotate(30deg);

}

.head > .eyes {

width: 100%;

height: 10vw;

position: absolute;

top: 45%;

}

.head > .eyes > .eye {

background: black;

width: 10vw;

height: 10vw;

border-radius: 100%;

position: absolute;

}

.head > .eyes > .eye:after {

content: "";

background: white;

width: 2.5vw;

height: 2.5vw;

position: absolute;

top: 20%;

right: 20%;

border-radius: 100%;

}

.head > .eyes > .eye.left {

left: 25%;

}

.head > .eyes > .eye.right {

right: 25%;

}

.head > .blushes {

width: 100%;

height: 10vw;

position: absolute;

top: 65%;

}

.head > .blushes > .blush {

background: #ff4a86;

width: 15vw;

height: 5vw;

border-radius: 100%;

position: absolute;

}

.head > .blushes > .blush.left {

left: 5%;

}

.head > .blushes > .blush.right {

right: 5%;

}

.head .mouth {

width: 25vw;

height: 7vw;

position: absolute;

bottom: 10%;

left: calc(50% - 12.5vw);

}

.head .mouth > .lip {

width: calc(12.5vw - 2.25vw);

height: calc(7vw - 1.5vw);

border: solid 1.5vw black;

border-top: none;

position: absolute;

border-radius: 0 0 100% 100% / 0 0 180% 180%;

}

.head .mouth > .lip.right {

right: 0;

}

.shadow {

background: #2f2f2f;

width: 70vw;

height: 20vw;

position: absolute;

top: calc(50% - 10vw + 25vw);

left: calc(50% - 35vw);

z-index: 1;

border-radius: 100%;

animation: shadow 1s infinite;

}

@keyframes monster {

0% {

width: 70vw;

height: 50vw;

left: calc(50% - 35vw);

border-radius: 90% 90% 80% 80% / 120% 120% 60% 60%;

}

50% {

width: 62vw;

height: 53vw;

margin-top: -10vw;

top: calc(50% - 26.5vw);

left: calc(50% - 31vw);

border-radius: 100% 100% 80% 80% / 150% 150% 60% 60%;

}

}

@keyframes shadow {

0% {

width: 70vw;

height: 20vw;

top: calc(50% - 10vw + 25vw);

left: calc(50% - 35vw);

}

50% {

width: 58.33333333vw;

height: 16.66666667vw;

top: calc(50% - 8.33333333vw + 25vw);

left: calc(50% - 29.16666667vw);

}

}

創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎

總結

以上是生活随笔為你收集整理的html制作卡通图案代码,CSS画的卡通动画图案的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。