HTML5 CSS3 Special Topics create album effects with pure CSS

Source: Internet
Author: User

 

Today, I accidentally found that there was another example in my computer. I felt that the results were quite good. I don't remember when I downloaded them, and I haven't been on w3cfuns for a long time. I miss the days of studying at the front desk and share it with you.

:

The results are not very good. The most important thing is that a line of js is not used, which is the highlight.

First look at the html file:

 

Pure CSS3 album Effect 
 
Brief description:

 

1. li in ul determines the number of photos.

2. ul uses the float: right, width: 140px style to display the image in the right area of the album.

3. the float: left of li enables li to float left. The div of the large image is stored in li. The position is absolute, which is located based on div # gallary. By default, only the first display is displayed.

4. When you move the mouse over li, the transparency of li span img is changed and the display of li div is displayed.

 

The following is the css file:

 

 

Css does not have any complicated styles, so it is not described. In addition, I introduced a reset style css and reset.css in html. You can also reset the style as you like:

 

 

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend{margin: 0;padding: 0;font-size: 100%;border: 0;outline: 0;background: transparent;}ol, ul {list-style: none;}blockquote, q {quotes: none;}:focus {outline: 0;}table {border-collapse: collapse;border-spacing: 0;}


 

Download source code

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.