js+css实现全屏幻灯片切换效果代码
代码语言:html
所属分类:幻灯片
代码描述:js+css实现全屏幻灯片切换效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <style> .kontext { width: 100%; height: 100%; } .kontext .layer { position: absolute; width: 100%; height: 100%; top: 0; left: 0; visibility: hidden; /*box-shadow: 0px 0px 120px rgba( 0, 0, 0, 0.8 );*/ } .kontext .layer.show { visibility: visible; } .kontext.capable { -webkit-perspective: 1000px; -moz-perspective: 1000px; perspective: 1000px; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; transform-style: preserve-3d; } .kontext.capable .layer { -webkit-transform: translateZ( -100px ); -moz-transform: translateZ( -100px ); transform: translateZ( -100px ); } .kontext.capable .layer.show { -webkit-transform: translateZ( 0px ); -moz-transform: translateZ( 0px ); transform: translateZ( 0px ); } .kontext.capable.animate .layer.show.right { -webkit-animation: show-right 1s forwards ease; -moz-animation: show-right 1s forwards ease; animation: show-right 1s forwards ease; } .kontext.capable.animate .layer.hide.right { -webkit-animation: hide-right 1s forwards ease; -moz-animation: hide-right 1s forwards ease; animation: hide-right 1s forwards ease; } .kontext.capable.animate .layer.show.left { -webkit-animation: show-left 1s forwards ease; -moz-animation: show-left 1s forwards ease; animation: show-left 1s forwards ease; } .kontext.capable.animate .layer.hide.left { -webkit-animation: hide-left 1s forwards ease; -moz-animation: hide-left 1s forwards ease; animation: hide-left 1s forwards ease; } /* CSS animation keyframes */ @-webkit-keyframes show-right { 0% { -webkit-transform: translateZ( -200px ); } 40% { -webkit-transform: translate( 40%, 0 .........完整代码请登录后点击上方下载按钮下载查看
网友评论0