The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| State | |
| Alabama|AL | |
| Alaska|AK | |
| Arizona|AZ | |
| Arkansas|AR | |
| California|CA | |
| Colorado|CO | |
| Connecticut|CT | |
| Delaware|DE | |
| Florida|FL |
| var gallery = $('.gallery'), | |
| startingOpacity = gallery.find('img').css('opacity'); | |
| // animate opacity on hover | |
| gallery.find('img').on('mouseenter mouseleave', function(event){ | |
| var opacity = event.type === 'mouseenter' ? 1 : startingOpacity; | |
| $(this).fadeTo(200, opacity); | |
| }); | |
| // make the link to scroll to top of the page | |
| var backToTop = $('<a>', { | |
| href: '#home', | |
| class: 'back-to-top', | |
| html: '<i class="fa fa-caret-up fa-5x"></i>' | |
| }); | |
| // add link to the page and establish a scrolling function | |
| backToTop | |
| .hide() |