久久资源网

css3 svg无限放大三角形动画

css3 svg无限放大三角形动画

2019-06-02 10:13:56 CSS3实例

售价:5.00积分 会员免费

特别声明:资源售价只是赞助,不代表代码或者素材本身点数。收取费用仅维持本站的日常运营所需!

css3 svg无限放大三角形动画

css3 animation基于svg绘制旋转放大的透明三角形动画特效。

使用方法

1、head引入css文件

<link rel="stylesheet" href="css/style.css">

2、body引入HTML代码

<div class="wrapper">
	<svg class="triangle-canvas" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">
		<polygon class="triangle triangle-1" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-2" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-3" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-4" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-5" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-6" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-7" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-8" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-9" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-10" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-11" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-12" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-13" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-14" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-15" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-16" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-17" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-18" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-19" points="500,200 759,650 241,650" />
		<polygon class="triangle triangle-20" points="500,200 759,650 241,650" />
	</svg>
</div>

资源出处:https://www.moyublog.com/codes/9377.html

关注微信