Joined August 2011
·

Jessie Keck

Software Developer at Stanford University
·
Stanford, CA
·
·
·

Posted to CSS Image Gallery - NO JS! over 1 year ago

Perhaps you meant to link to this example?

http://codepen.io/elad2412/pen/yfEGp

Perfect @glaszig, this is exactly the kind of thing I was looking for. I have edited the tip to include this information. Thank you.

I believe I was correct in the first place, just needed to be more specific about the type of on() function to call. I edited the tip to indicate that you should use a delegated on() event as http://api.jquery.com/on/#direct-and-delegated-events explains:
"Delegated events have the advantage that they can process events from descendant elements that are added to the document at a later time."

Achievements
168 Karma
7,434 Total ProTip Views
Interests & Skills