Reputation: 3
Well I have this: http://codepen.io/seraphzz/pen/HfqBy
OK, I've used animate(); before and it has worked perfectly. I just don't know why it doesn't this time.(It's a long image that I want to move on hover)
Also, I'm trying to make it responsive using percentages but It won't get any height if I don't use pixels.
Can you guys help me with that? Thanks in advance! Best regards!
Upvotes: 0
Views: 77
Reputation: 29168
I had success by adjusting the way you are selecting elements.
Instead of using children()
like this:
$(this).children('.frame img')
Try this, selecting .frame img
within this
.
$('.frame img',this)
http://codepen.io/seraphzz/pen/pfHLg
Upvotes: 1