使用CSS3动画做出光芒万丈的效果

本文介绍了如何利用CSS3的动画特性创建出光芒万丈的视觉效果,通过详细的CSS代码和HTML结构,展示了如何实现这一动态效果。
摘要由CSDN通过智能技术生成

css代码:

/**************************遮罩****************************/

.mui-backdrop {
	position: fixed;
	height: 100%;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 998;
	background-color: rgba(0,0,0,0.5);
	display: flex;
	justify-content: center;
	align-items: center;
}


/*遮罩里面的内容块*/

.mui-backdrop .backdrop-content {
	width: 90%;
	height: auto;
	background-color: white;
	position: relative;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-content: center;
}

.mui-backdrop .backdrop-content .mui-icon-close {
	font-size: 30px;
	position: absolute;
	top: -70px;
	color: white;
	right: 10px;
}


/**************************自定义遮罩-结束***********************/


/**********************优惠劵样式************************/
			/*优惠劵的背景色*/
			
			.youhuiquan-one-type {
				height: 80px;
				clear: both;
				margin-top: 7px;
				overflow: hidden;
				display: flex;
				justify-content: center;
				align-items: center;
				background: #FEDFA9;
			}
			/*.youhuiquan-one-type:first-child {
				margin-top: 0;
				background: #FEDFA9;
			}*/
			/*锯齿效果*/
			
			.sawtooth {
				/* 相对定位,方便让before和after伪元素绝对定位偏移 */
				position: relative;
				/* 把超出div的部分隐藏起来 */
				overflow: hidden;
			}
			
			.sawtooth:before,
			.sawtooth:after {
				content: ' ';
				width: 0;
				height: 100%;
				/* 绝对定位进行偏移 */
				position: absolute;
				top: 10px;
			}
			
			.sawtooth:before {
				/* 圆点型的border */
				border-right: 6px dotted white;
				/* 偏移一个半径,让圆点的一半覆盖div */
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值