单个div+css实现卡通粉色小猪存钱罐存钱动画效果代码

代码语言:html

所属分类:动画

代码描述:单个div+css实现卡通粉色小猪存钱罐存钱动画效果代码

代码标签: 单个 div css 卡通 粉色 小猪 存钱罐 存钱 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

<link href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Just+Another+Hand&family=Teko&display=swap" rel="stylesheet">
  
  
  
<style>
div:before, div:after {
  display: block;
  content: "";
  position: absolute;
}

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  background: radial-gradient(#fbc6cd, white);
}

div.collect {
  width: 100vmin;
  height: 100vmin;
  display: flex;
  margin: 0 auto;
  position: relative;
  background: radial-gradient(ellipse, #f04258 8.5vmin, transparent 8vmin) 41.5vmin 37vmin/17vmin 1.5vmin no-repeat, radial-gradient(ellipse, #f35e71 8.5vmin, transparent 8vmin) 41.5vmin 36.5vmin/17vmin 2vmin no-repeat, radial-gradient(ellipse, #f04258 1.5vmin, transparent 1vmin) 34.5vmin 49.5vmin/3vmin 3vmin no-repeat, radial-gradient(ellipse, #f35e71 2.5vmin, transparent 1vmin) 33vmin 48vmin/5vmin 5vmin no-repeat, radial-gradient(ellipse, #f8a5b0 20vmin, transparent 1vmin) 27vmin 35vmin/40vmin 34vmin no-repeat, radial-gradient(ellipse, #f797a3 23vmin, transparent 1vmin) 25.5vmin 35vmin/46vmin 39vmin no-repeat, radial-gradient(ellipse, #f68996 25vmin, transparent 1vmin) 25vmin 35vmin/50vmin 45vmin no-repeat, linear-gradient(90deg, #f8a5b0 13vmin, transparent 1vmin) 21.5vmin 52.5vmin/8vmin 3vmin no-repeat, radial-gradient(ellipse at bottom right, #f8a5b0 7vmin, transparent 1vmin) 14.5vmin 45vmin/14vmin 8vmin no-repeat, radial-gradient(ellipse at top right, #f8a5b0 7vmin, transparent 1vmin) 14.5vmin 55vmin/14vmin 8vmin no-repeat, linear-gradient(90deg, #f797a3 13vmin, transparent 1vmin) 20.5vmin 52.5vmin/8vmin 6vmin no-repeat, radial-gradient(ellipse at bottom right, #f797a3 7vmin, transparent 1vmin) 13.5vmin 45vmin/14vmin 8vmin no-repeat, radial-gradient(ellipse at top right, #f797a3 7vmin, transparent 1vmin) 13.5vmin 58vmin/14vmin 8vmin no-repeat, radial-gradient(ellipse at top, #f797a3 4.5vmin, transparent 1vmin) 32vmin 67vmin/9vmin 15vmin no-repeat, radial-gradient(ellipse at top, #f68996 5vmin, transparent 1vmin) 32.5vmin 72vmin/10vmin 10vmin no-repeat, radial-gradient(ellipse at top, #f797a3 4.5vmin, transparent 1vmin) 60vmin 67vmin/9vmin 15vmin no-repeat, radial-gradient(ellipse at top, #f68996 5vmin, transparent 1vmin) 58.5vmin 72vmin/10vmin 10vmin no-repeat;
}

di.........完整代码请登录后点击上方下载按钮下载查看

网友评论0