27 posts
  • 4 Years of Membership
  • Affiliate Level 1
  • Author Level 4
  • Exclusive Author

Well I would like to learn how to make some new page openers like in this website: http://greyscalegorilla.com/blog/tutorials/

The way the box go gray when you hover the mouse cursor over and when you click the boxes they send you to a new page….

Well I would like to learn how to do that so if you know some tutorials about making them please share them.

Thank you for your time and help.

4889 posts
  • Beta Tester
  • Community Superstar
  • Moderator
  • 7 Years of Membership
+2 more

Just Google hover effects or rollover effect tutorials – its basic stuff and there will be a ton on tutorials on it like http://tympanus.net/Tutorials/OriginalHoverEffects/index2.html (slightly more advanced than what you are linking to but the principal is the same).

As for making the click redirect a user that’s just a question of linking the image to a different page

238 posts
  • United States
  • Envato Team
  • Featured Author
  • Featured Item
+14 more
Envato team

Learning how to break apart existing code is a good first step. Fire up your favorite console (I like Firebug) and inspect the site.

Start with the element that has the effect you’re wanting to replicate. Locate it’s class name, ID or REL (or note the hierarchy) so that you have a good idea of how the element(s) would be selected. In this case, you’re seeing a jQuery hover animation and the site is selecting images using tags.

Then just search through linked pages using what you think might be the selector to achieve the effect. You’ll eventually find it:

 $('#archive article').mouseover(function(){
      $(this).find('a').animate({opacity: 1}, {duration: 250, queue: false});
      $(this).find('a').animate({opacity: 0}, {duration: 250, queue: false});

This is located in the archive.js file. Although this may not be the best approach to learning – it will help you achieve the exact results of what you’re looking for and show you ways other developers approach similar problems. Learning different coding patterns is a good idea.

The code is pretty straight-forward, but not ideal. In this situation you’re probably better looking to a tutorial since it will cover better coding practices (like faster selectors, caching, etc). Anyway, if you come across effects in the future that you want to learn more about this is always a good place to start. :)