菜鸡源码,专注精品下载!
当前位置:首页 > 建站教程 > 建站知识

使用CSS3和JS实现页面加载过渡跳转效果

发布时间:2024-01-05  栏目:建站知识   浏览:   分类:css教程 跳转页面模板 CSS3动画 CSS3教程

CSS3+JS页面loading过度跳转效果,字母跳动效果,具体效果如下图

CSS3+JS页面loading过度跳转效果

CSS3+JS页面loading过度跳转效果代码

<!DOCTYPEhtml><html><head><metahttp-equiv="Content-Type"content="text/html;charset=UTF-8"><metaname="viewport"content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no"><metaname="apple-mobile-web-app-capable"content="yes"><metaname="robots"content="noindex,follow"><title>加载中</title><metahttp-equiv="refresh"content="3;url=https://www.caijicaiji.com/"><style>body{font-weight:100;margin:0}body{-webkit-tap-highlight-color:transparent;background-color:#222428;font-size:100%;font-family:OpenSans;height:100%}.loader{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-mos-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;width:80%;overflow:visible}.loader,.loaderdiv{position:absolute;height:36px}.loaderdiv{width:30px;margin:010px;opacity:0;animation:move2slinearinfinite;-o-animation:move2slinearinfinite;-moz-animation:move2slinearinfinite;-webkit-animation:move2slinearinfinite;transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);color:#fff;font-size:3em}.loaderdiv:nth-child(8):before{background:#db2f00}.loaderdiv:nth-child(8):before,.loaderdiv:nth-child(9):before{content:'';position:absolute;bottom:-15px;left:0;width:30px;height:30px;border-radius:100%}.loaderdiv:nth-child(9):before{background:#f2f2f2}.loaderdiv:nth-child(10):before{bottom:-15px;height:30px;background:#13a3a5}.loaderdiv:after,.loaderdiv:nth-child(10):before{content:'';position:absolute;left:0;width:30px;border-radius:100%}.loaderdiv:after{bottom:-40px;height:5px;background:#39312d}.loaderdiv:nth-child(2){animation-delay:.2s;-o-animation-delay:.2s;-moz-animation-delay:.2s;-webkit-animation-delay:.2s}.loaderdiv:nth-child(3){animation-delay:.4s;-o-animation-delay:.4s;-webkit-animation-delay:.4s}.loaderdiv:nth-child(4){animation-delay:.6s;-o-animation-delay:.6s;-moz-animation-delay:.6s;-webkit-animation-delay:.6s}.loaderdiv:nth-child(5){animation-delay:.8s;-o-animation-delay:.8s;-moz-animation-delay:.8s;-webkit-animation-delay:.8s}.loaderdiv:nth-child(6){animation-delay:1s;-o-animation-delay:1s;-moz-animation-delay:1s;-webkit-animation-delay:1s}.loaderdiv:nth-child(7){animation-delay:1.2s;-o-animation-delay:1.2s;-moz-animation-delay:1.2s;-webkit-animation-delay:1.2s}.loaderdiv:nth-child(8){animation-delay:1.4s;-o-animation-delay:1.4s;-moz-animation-delay:1.4s;-webkit-animation-delay:1.4s}.loaderdiv:nth-child(9){animation-delay:1.6s;-o-animation-delay:1.6s;-moz-animation-delay:1.6s;-webkit-animation-delay:1.6s}.loaderdiv:nth-child(10){animation-delay:1.8s;-o-animation-delay:1.8s;-moz-animation-delay:1.8s;-webkit-animation-delay:1.8s}@keyframesmove{0%{right:0;opacity:0}35%{right:41%}35%,65%{-webkit-transform:rotate(0);transform:rotate(0);opacity:1}65%{right:59%}to{right:100%;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}}@-webkit-keyframesmove{0%,to{opacity:0}0%{right:0}35%{right:41%}35%,75%{-webkit-transform:rotate(0);transform:rotate(0);opacity:1}75%{right:59%}to{right:100%;-webkit-transform:rotate(-180deg);transform:rotate(-180deg);opacity:0}}</style></head><bodyclass="ie8"><divclass="loader"><div>L</div><div>O</div><div>A</div><div>D</div><div>I</div><div>N</div><div>G</div><div></div><div></div><div></div></div></body></html>

修改跳转链接只需要改这个地方的链接就可以了

<metahttp-equiv="refresh"content="3;url=https://www.caijicaiji.com/">

换成你的跳转网址,3代表3秒后跳转,也可以随意调整。

相关专题

相关文章

    无相关信息
评论
建站知识
建站知识
使用技巧
调试安装
运营推广