CSS Streamer effect

Source: Internet
Author: User

CSS Streamer effect 1:

<! DOCTYPE html>"Text/css">/*CSS Source code*/body{background: #CFCFCF;      }. image {position:relative;      Overflow:hidden;      width:300px;    height:450px;      } img {width:300px;    height:450px; }. image:before{content:"';        Position:absolute;        Display:block;        width:200px;        height:450px;        Background: #fff; Top:0; Left:-400px; Translate:-webkit-Transform:skewy (25DEG); -MOZ-TRANSFORM:SKEWX (-25deg); -MS-TRANSFORM:SKEWX (-25deg); -O-TRANSFORM:SKEWX (-25deg); TRANSFORM:SKEWX (-25deg); Background:linear-gradient (0deg, Rgba (255,255,255,0), Rgba (255,255,255,0.4), Rgba (255,255,255,0)); -moz-linear-gradient (0deg, Rgba (255,255,255,0), Rgba (255,255,255,0.4), Rgba (255,255,255,0)); -webkit-linear-gradient (0deg, Rgba (255,255,255,0), Rgba (255,255,255,0.4), Rgba (255,255,255,0)); -o-linear-gradient (0deg, Rgba (255,255,255,0), Rgba (255,255,255,0.4), Rgba (255,255,255,0));      }. image:hover:before{left:400px; -webkit-transition:all0. 5s ease; -moz-transition:all0. 5s ease; -ms-transition:all0. 5s ease; -o-transition:all0. 5s ease; Transition:all0. 5s ease; }    }</style><body><!--do not add <body> tags in html snippets// -<div id="Container"> <divclass="Image"> "http://ww4.sinaimg.cn/mw600/005vbOHfgw1ercvg85sr0j30jg0t6tdq.jpg"alt="Hello World"/> <!--<em></em>-</div></div><!--recommend an open source CDN to select the external JS to be referenced// -<script type="Text/javascript"Src="Http://cdn.gbtags.com/jquery/1.11.1/jquery.min.js"></script></body>

2:

. view-Area ul li{width:32.666%; float: Left; Margin-left:1%;    position:relative; Overflow:hidden;}. View-Area ul li img{width: -%; Height: -%; Position:relative;}. View-Area ul li::before{Position:absolute; Top:0; Left:-135%; Z-index:2;    Display:block; Content:"'; Width: -%; Height: -%; Background:-webkit-linear-gradient (left, Rgba (255,255,255,0)0%, Rgba (255,255,255,.3) -%); Background:linear-gradient (to right, RGBA (255,255,255,0)0%, Rgba (255,255,255,.3) -%); -WEBKIT-TRANSFORM:SKEWX (-25deg); TRANSFORM:SKEWX (-25deg);}. View-Area ul li:hover::before{-webkit-Animation:shine. 75s; Animation:shine. 75s;} @-webkit-keyframes Shine { -%{left: the%; }} @keyframes Shine { -%{left: the%; }}

Http://demo.cssmoban.com/cssthemes4/cpts_958_csb/index.html

.

CSS Streamer effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.