flux实现图片幻灯片转场切换三维5种效果代码
代码语言:html
所属分类:幻灯片
代码描述:flux实现图片幻灯片转场切换三维5种效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <style> html { height: 100%; } .container { margin: 20px auto; width: 760px; } h1, h2 { text-align: center; text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.2); } h1 { font-size: 3em; } h2 { margin-top: -1.5em; color: #ba3304; } ul.transitions { margin: 40px -10px; padding: 0; overflow: auto; } ul.transitions li { list-style: none; width: 15%; float: left; padding: 0 10px 1em; } ul.transitions li button { font-family: 'Antic Slab', arial, sans-serif; display: block; width: 100%; padding: 1em; text-align: center; font-size: 1.2em; -moz-border-radius: 5px; -webkit-border-radius: 5px; -o-border-radius: 5px; -ms-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 3px 4px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 3px 4px rgba(0, 0, 0, 0.2); -o-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 3px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 3px 4px rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.3); background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #999999), color-stop(100%, #666666)); background: -webkit-linear-gradient(#999999, #666666); background: -moz-linear-gradient(#999999, #666666); background: -o-linear-gradient(#999999, #666666); background: -ms-linear-gradient(#999999, #666666); background: linear-gradient(#999999, #666666); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8); } ul.transitions li button[data-transition="explode"] { background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #793c82), color-stop(100%, #592c5f)); background: -webkit-linear-gradient(#793c82, #592c5f); background: -moz-linear-gradient(#793c82, #592c5f); background: -o-linear-gradient(#793c82, #592c5f); background: -ms-linear-gradient(#793c82, #592c5f); background: linear-gradient(#793c82, #592c5f); } ul.transitions li button[data-transition="explode"]:active { background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #592c5f), color-stop(100%, #381c3c)); background: -webkit-linear-gradient(#592c5f, #381c3c); background: -moz-linear-gradient(#592c5f, #381c3c); background: -o-linear-gradient(#592c5f, #381c3c); background: -ms-linear-gradient(#592c5f, #381c3c); background: linear-gradient(#592c5f, #381c3c); } ul.transitions li button[data-transition="cube"] { background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #2ad6dd), color-stop(100%, #1db1b7)); background: -webkit-linear-gradient(#2ad6dd, #1db1b7); background: -moz-linear-gradient(#2ad6dd, #1db1b7); background: -o-linear-gradient(#2ad6dd, #1db1b7); background: -ms-linear-gradient(#2ad6dd, #1db1b7); background: linear-gradient(#2ad6dd, #1db1b7); } ul.transitions li button[data-transition="cube"]:active { background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #1db1b7), color-stop(100%, #16868b)); background: -webkit-linear-gradient(#1db1b7, #16868b); background: -moz-linear-gradient(#1db1b7, #16868b); background: -o-linear-gradient(#1db1b7, #16868b); background: -ms-linear-gradient(#1db1b7, #16868b); background: linear-gradient(#1db1b7, #16868b); } ul.transitions li button[data-transition="turn"] { background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fa602a), color-stop(100%, #eb4106)); background: -webkit-linear-gradient(#fa602a, #eb4106); background: -moz-linear-gradient(#fa602a, #eb4106); background: -o-linear-gradient(#fa602a, #eb4106); background: -ms-linear-gradient(#fa602a, #eb4106); background: linear-gradient(#fa602a, #eb4106); } ul.transitions li button[data-transition="turn"]:active { background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #eb4106), color-stop(100%, #ba3304)); background: -webkit-linear-gradient(#eb4106, #ba3304); background: -moz-linear-gradient(#eb4106, #ba3304); background: -o-linear-gradient(#eb4106, #ba3304); background: -ms-linear-gradient(#eb4106, #ba3304); background: linear-gradient(.........完整代码请登录后点击上方下载按钮下载查看
网友评论0