css3文字交叉切换特效代码下载


css3文字交叉切换特效代码下载
css3文字交叉切换特效代码下载以及文字交叉切换等js/jquery网页特效代码下载。

1. 引入CSS

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

2. 引入JS

<script src='js/splitting.min.js'></script>
<script src="js/script.js"></script>

3. HTML代码

<nav>
	<a href="#" class="nav__link">
		<span class="nav__link--text" data-splitting>首页</span>
		<span class="nav__link--text" data-splitting>首页</span>
	</a>
	<a href="#" class="nav__link">
		<span class="nav__link--text" data-splitting>关于我们</span>
		<span class="nav__link--text" data-splitting>关于我们</span>
	</a>
	<a href="#" class="nav__link">
		<span class="nav__link--text" data-splitting>联系我们</span>
		<span class="nav__link--text" data-splitting>联系我们</span>
	</a>
</nav>

相关推荐

发表评论

相关文章