CSS 蜡烛效果

<template>
	<view class="holder">
		<!-- 身子 -->
		<view class="candle">
			<!-- 光源 -->
			<view class="blinking-glow"></view>
			<!-- 火星子 -->
			<view class="thread"></view>
			<!-- 绿光 -->
			<view class="glow"></view>
			<!-- 火 -->
			<view class="flame"></view>
		</view>
	</view>
</template>

<script>
</script>

<style>
	body {
		background-color: #212121;
		/* 设置背景颜色为深灰色 */
	}
	.holder {
		margin: 12rem auto 0;
		/* 设置上边距为12rem,左右居中对齐 */
		width: 150px;
		/* 设置宽度为150px */
		height: 400px;
		/* 设置高度为400px */
		position: relative;
		/* 设置相对定位 */
	}

	.holder *,
	.holder *:before,
	.holder *:after {
		position: absolute;
		/* 设置绝对定

相关推荐

  1. css 多种动画效果

    2024-01-23 16:20:02       65 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-23 16:20:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-23 16:20:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-23 16:20:02       82 阅读
  4. Python语言-面向对象

    2024-01-23 16:20:02       91 阅读

热门阅读

  1. 代码随想录算法训练营29期Day27|LeetCode 39,40,131

    2024-01-23 16:20:02       58 阅读
  2. React前端解析excel文件,获取excel文件中的数据

    2024-01-23 16:20:02       61 阅读
  3. React Hooks 使用 Fabric.js

    2024-01-23 16:20:02       52 阅读
  4. Zookeeper的使用

    2024-01-23 16:20:02       40 阅读
  5. zookeeper的优化配置

    2024-01-23 16:20:02       48 阅读
  6. 编写Netty程序

    2024-01-23 16:20:02       40 阅读
  7. android 扫描某个包下的所有类

    2024-01-23 16:20:02       59 阅读
  8. LeetCode每日一题 | 670. 最大交换

    2024-01-23 16:20:02       60 阅读