js实现罗盘式全屏幻灯片切换效果代码
代码语言:html
所属分类:幻灯片
代码描述:js实现罗盘式全屏幻灯片切换效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>罗盘图片导航</title> <meta name="description" content="Neat"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" user-scalable="no"> <style> html, body{ width:100%; min-height: 100%; overflow-x: hidden; -webkit-tap-highlight-color: rgba(255,255,255,0); /* min-width: 1000px; */ } *{ margin:0; padding:0; font-size: 12px; } ul{ list-style:none; } .hide{ display: none; } .lf{ float: left; } .lr{ float: right; } .red, .red a,.red a h5, .red a p{ color:#FF0000 !important; } a { text-decoration: none; color: inherit; } .mr2 { margin-right: 1rem; } .ml2 { margin-left: 1rem; } .main-group{ position: relative; display: block; width: 100%; height: 100vh; margin:0 auto; } .nav-group{ position:absolute; display: block; width:500px; height:500px; padding:0; margin: 0; /* left:230px; */ top:50%; margin-top: -250px; z-index: 10; } .nav-group li{ position: absolute; display: inline-block; overflow: hidden; width: 80px; height: 80px; padding:10px; text-align: center; cursor: pointer; border-radius: 50%; transition: all 1s ease-in-out; t.........完整代码请登录后点击上方下载按钮下载查看
网友评论0