使用方法:
1、head引入css文件
<!--字体--> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Montserrat&display=swap"rel="stylesheet'> <!--插件样式--> <link rel='stylesheet' href='css/splitting-cells.css'> <link rel='stylesheet' href='css/splitting.css'> <!--主要样式--> <link rel="stylesheet" href="css/style.css">
2、body引入部分
<div class="wrapper"> <span class="loading" data-splitting>Loading</span> </div> <script src='js/splitting.min.js'></script> <script src="js/script.js"></script>