vue实现幻灯片轮播效果代码
代码语言:html
所属分类:幻灯片
代码描述:vue实现幻灯片轮播效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.min.css"> <style> body { background-color: #5c4084; padding: 25px; } .container { padding: 6px; background-color: #fff; border-radius: 8px; max-width: 800px; box-shadow: 0 5px 8px #0000007a; } .heading { text-align: center; } .heading h1 { background: -webkit-linear-gradient(#fff, #8f70ba); -webkit-text-fill-color: transparent; -webkit-background-clip: text; text-align: center; margin: 0 0 5px 0; font-weight: 900; font-size: 4rem; color: #fff; } .heading h4 { color: #8f70ba; text-align: center; margin: 0 0 35px 0; font-weight: 400; font-size: 24px; } .vueGallery .activePhoto { width: 100%; margin-bottom: 5px; padding-bottom: 65%; background-size: cover; background-position: center; background-repeat: no-repeat; border: 2px solid #fff; position: relative; } .vueGallery .activePhoto button { border: none; background-color: transparent; font-size: 32px; color: #fff; opacity: 0.5; position: absolute; outline: none; height: 100%; } .vueGallery .activePhoto button:hover { opacity: 1; } .vueGallery .activePhoto button.previous { padding: 0 1em 0 0.7em; left: 0; background: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%); background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%); background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', endColorstr='#00000000',GradientType=1 ); } .vueGallery .activePhoto button.next { padding: 0 0.7em 0 1em; right: 0; background: -moz-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%); background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%); background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#80000000',GradientType=1 ); } .vueGallery .thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-gap: 5px; } .vueGallery .thumbnails div { width: 100%; border: 2px solid #fff; outline: 2px solid #fff; cursor: pointer; padding-bottom: 65%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 1; } .vueGallery .thumbnails div:hover { opacity: 0.6; } ..........完整代码请登录后点击上方下载按钮下载查看
网友评论0