本文用极简的方式,用一个js脚本来给网站添加樱花飘落效果,分为两种样式:
在线引入1:
<!--樱花特效在线引入-->
<script src="https://files.cnblogs.com/files/quaint/sakuraPlus.js"></script>
在线引入2:
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/wsqstar/ResHosting@0.031/build/js/Sakura.js"></script>
效果展示:
演示链接:樱花飘落动画1
效果展示:
演示链接:樱花飘落动画2