Create A Polaroid Image Gallery
We always try to stay pretty active with
our Flickr feed; our chief instigator Bryan does a great job of capturing the day-to-day and special events and even some of our old work. We wanted a great way to show off these photos, so we turned to CSS3 to create a compelling, fun image gallery. The Polaroid style is pretty common, but we wanted not only to make it dead-simple to create the gallery in the markup but also to add styles that would have required Javascript just a year or two ago.
THE POLAROID GALLERY MARKUP
First off, we created very simple markup for the gallery, something that would be easy to generate automatically using the Flickr API. The markup for the entire gallery looks like this:
04 | < img src = "image-01.jpg" width = "250" height = "200" alt = "Roeland!" /> |
09 | < img src = "image-02.jpg" width = "250" height = "200" alt = "Discussion" /> |
We’ll be using the title
element in a minute.
read more at :
(text & sources taken from the above link)
No comments:
Post a Comment