gsap+splitting实现下雪文字动画圣诞节快乐效果代码

代码语言:html

所属分类:动画

代码描述:gsap+splitting实现下雪文字动画圣诞节快乐效果代码

代码标签: gsap splitting 下雪 文字 动画 圣诞节 快乐

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

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

<head>
  <meta charset="UTF-8">
  
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/splitting.css">
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap");

p.greetings {
	width: 100%;
	font-family: "Alex Brush", cursive;
	font-size: 12vmin;
	font-weight: 600;
	color: gold;
	text-shadow: 1px 1px 5px rgba(0 0 0 / 0.7), 3px 3px 8px rgba(255 215 0 / 0.75),
		5px 5px 10px rgba(255 215 0 / 0.5), 10px 10px 15px rgba(255 215 0 / 0.25),
		20px 20px 20px rgba(255 215 0 / 0.15);
	text-align: center;
	line-height: 0.75;
	font-kerning: normal;
}

.globe {
	width: 40vw;
	height: 40vw;
	outline: 1vmin solid gold;
	border-radius: 50%;
	display: flex;
	background: 
		/* CLOUDS */ radial-gradient(#fff 0 70%, #0000 0 100%) top -8% left
			95% / 45% 18%,
		radial-gradient(#fff 0 70%, #0000 0 100%) top -7% left 35% / 40% 15%,
		radial-gradient(#fff 0 70%, #0000 0 100%) top -5% left 12% / 35% 15%,
		/* STAR */ /* main points */ /* top */
			conic-gradient(at 50% 0, #0000 175deg, yellow 175deg 185deg, #0000 185deg)
			top 17% left 70% / 4% 7%,
		/* right */
			conic-gradient(at 75% 30%, #0000 265deg, yellow 265deg 275deg, #0000 265deg)
			top 22.25% left 75% / 7% 4%,
		/* bottom */
			conic-gradient(at 50% 100%, yellow 5deg, #0000 5deg 355deg, yellow 355deg)
			top 25% left 70% / 4% 10%,
		/* left */
			conic-gradient(at 30% 75%, #0000 85deg, yellow 85deg 95deg, #0000 95deg) top
			20.5% left 66% / 7% 4%,
		/* short points */ /* top left */
			conic-gradient(at 0 0, #0000 130deg, yellow 130deg 140deg, #0000 140deg) top
			20% left 68% / 3% 3%,
		/* top right */
			conic-gradient(at 100% 0, #0000 220deg, yellow 220deg 230deg, #0000 230deg)
			top 20% left 71.5% / 3% 3%,
		/* bottom right */
			conic-gradient(
				at 100% 100%,
				#0000 310deg,
				yellow 310deg 320deg,
				#0000 320deg
			)
			top 23.5% left 72% / 3% 3%,
		/* bottom left */
			conic-gradient(at 0 100%, #0000 40deg, yellow 40deg 50deg, #0000 50deg) top
			23.5% left 67.5% / 3% 3%,
		/* HAT */ linear-gradient(#ff8b00 100%, #0000 100%) top 47.5% left 40.75% /
			12% 5%,
		linear-gradient(#ff8b00 100%, #0000 100%) top 50% left 40.5% / 16% 1.25%,
		/* MOUTH */ radial-gradient(#000 0 70%, #0000 0 100%) top 59% left 39.5% /
			1.5% 1.5%,
		radial-gradient(#000 0 70%, #0000 0 100%) top 59.75% left 41% / 1.5% 1.5%,
		radial-gradient(#000 0 70%, #0000 0 100%) top 59.75% left 43.25% / 1.5% 1.5%,
		radial-gradient(#000 0 70%, #0000 0 100%) top 58.5% left 45% / 1.5% 1.5%,
		/* NOSE */ radial-gradient(#ff8b00 0 70%, #0000 0 100%) top 56% left 42% / 2%
			2%,
		/* EYES */ radial-gradient(#000 0 70%, #0000 0 100%) top 52.5% left 44% / 2%
			2%,
		radial-gradient(#000 0 70%, #0000 0 100%) top 53% left 39% / 2% 2%,
		/* HEAD */ radial-gradient(#fff 0 70%, #0000 0 100%) top 57% left 40% / 17%
			17%,
		/* ARMS */ linear-gradient(15deg, #0000 50%, #b14a30 50% 63%, #0000 63% 100%)
			top 72% left 20% / 16% 5%,
		linear-gradient(-10deg, #0000 45%, #b14a30 45% 62%, #0000 62% 100%) top 70.5%
			left 59% / 15% 5%,
		/* BUTTONS */ radial-gradient(blue 0 70%, #0000 0 100%) top 70% left 43% / 2%
			2%,
		radial-gradient(red 0 70%, #0000 0 100%) top 75% left 43.5% / 2% 2%,
		radial-gradient(purple 0 70%, #0000 0 100%) top 79% left 43.75% / 2% 2%,
		radial-gradient(green 0 70%, #0000 0 100%) top 84% left 43% / 2% 2%,
		/* BODY */ radial-gradient(#fff 0 70%, #0000 0 100%) top 90% left 39% / 27%
			31%,
		/* SHADOW */ radial-gradient(#dbdfe1 0 70%, #0000 0 100%) top 93.5% left 34% /
			22% 5%,
		/* TREE - BAUBLES */ radial-gradient(#d0ff14 0 70%, #0000 0 100%) top 33% left
			20.95% / 4% 4%,
		radial-gradient(#d8e4bc 0 70%, #0000 0 100%) top 44.5% left 21% / 2% 2%,
		radial-gradient(#ffa812 0 70%, #0000 0 100%) top 55% left 24% / 2% 2%,
		radial-gradient(#fff 0 70%, #0000 0 100%) top 52% left 19% / 2% 2%,
		radial-gradient(#03c03c 0 70%, #0000 0 100%) top 69% left 27% / 2% 2%,
		radial-gradient(#03c03c 0 70%, #0000 0 100%) top 65% left 22% / 2% 2%,
		radial-gradient(#dc143c 0 70%, #0000 0 100%) top 62% left 17% / 2% 2%,
		radial-gradient(#cccccc 0 70%, #0000 0 100%) top 72% left 15% / 2% 2%,
		radial-gradient(#0047ab 0 70%, #0000 0 100%) top 75% left 22% / 2% 2%,
		/* TREE */
			conic-gradient(
				at 50% 0,
				#0000 165deg,
				forestgreen 165deg 195deg,
				#0000 195deg
			)
			top 65% left 10%/ 30% 50%,
		linear-gradient(to right, #374231 0 100%, #0000 0 100%) top 85% left 22% / 2%
			4%,
		/* SNOW PILES .........完整代码请登录后点击上方下载按钮下载查看

网友评论0