单个div+css实现春天早晨阳光下的花朵和蜜蜂动画效果代码
代码语言:html
所属分类:布局界面
代码描述:单个div+css实现春天早晨阳光下的花朵和蜜蜂动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> .spring { --flower1: #dad; width: 500px; aspect-ratio: 1; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: /* flower */ radial-gradient(circle at 20% 60%, gold 1%, #0000 0), radial-gradient(200% 50% at 18% 60%, var(--flower1) 1%, #0000 0), radial-gradient(100% 150% at 20% 58%, var(--flower1) 1%, #0000 0), radial-gradient(circle at 18.5% 59%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 18.5% 61.5%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 21% 61.5%, var(--flower1) 1.75%, #0000 0), radial-gradient(circle at 21.5% 59%, var(--flower1) 1.5%, #0000 0), radial-gradient(farthest-side at 100% 60%, #0000 90%, green 0 99.9%, #0000 0) 17.5% 80% / 5% 25% no-repeat, radial-gradient(farthest-side at 50% 100%, green 99.9%, #0000 0) 18.5% 70% / 8% 1.5% no-repeat, radial-gradient(farthest-side at 50% 20%, green 99.9%, #0000 0) 10% 75% / 8% 1.5% no-repeat, /* flower */ radial-gradient(circle at 30% 50%, gold 1%, #0000 0), radial-gradient(340% 150% at 30% 50.5%, var(--flower1) 1%, #0000 0), radial-gradient(100% 150% at 30% 48%, var(--flower1) 1%, #0000 0), radial-gradient(circle at 28.5% 49%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 28.5% 51.5%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 31% 51.5%, var(--flower1) 1.75%, #0000 0), radial-gradient(circle at 31.5% 49%, var(--flower1) 1.5%, #0000 0), radial-gradient(farthest-side at 0% 55%, #0000 88%, green 0 99.9%, #0000 0) 30.5% 77% / 4% 35% no-repeat, radial-gradient(farthest-side at 50% 0%, green 99.9%, #0000 0) 28.5% 66% / 6% 1.25% no-repeat, /* flower 2 */ radial-gradient(circle at 25% 70%, gold 1%, #0000 0), radial-gradient(340% 150% at 25% 70.5%, var(--flower1) 1%, #0000 0), radial-gradient(100% 150% at 25% 68%, var(--flower1) 1%, #0000 0), radial-gradient(circle at 23.5% 69%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 23.5% 71.5%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 26% 71.5%, var(--flower1) 1.75%, #0000 0), radial-gradient(circle at 26.5% 69%, var(--flower1) 1.5%, #0000 0), radial-gradient(farthest-side at 0% 75%, #0000 80%, green 0 99.9%, #0000 0) 25.5% 82% / 2% 15% no-repeat, /* flower 4 */ radial-gradient(circle at 38% 58%, gold 1%, #0000 0), radial-gradient(350% 180% at 38% 57.75%, var(--flower1) 1%, #0000 0), radial-gradient(circle at 37.5% 55.5%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 37% 60%, var(--flower1) 1.5%, #0000 0), radial-gradient(circle at 39.25% 60%, var(--flower1) 1.75%, #0000 0), radial-gradient(circle at 39.75% 55.75%, var(--flower1) 1.5%, #0000 0), radial-gradient(farthest-side at 100% 70%, #0000 75%, green 0 99.9%, #0000 0) 37.75% 78% / 2% 30% no-repeat, /* flower 5 */ radial-gradient(cir.........完整代码请登录后点击上方下载按钮下载查看
网友评论0