I have an animation that works on a click, so the element(1) goes where I click, but I have another element(2)that increases with a click, the problem is that when I click element2 I don't want the element1 to follow the mouse. Thank you.
I need to rotate an image 360º with jquery animation (no CSS) when I hover the image with the mouse, also the image is in movement, I don't know if it afects. Thank you.
I have an image of a fish and I need to do an animation so the fish goes from one site to the other, but when it reaches the top of one side I want to flip the image so it doesn't look that it's swimming back. I've started doing this:
$(document).ready(function () {
$("#fish").animate({rigth: '200'}, 2000);
and for fliping the image this: transform:
.css({ 'scaleX(-1)' });
and I guess for turning back it's the same as the first one just changing directon left.
But I don't know how can they be executed one by one... I'm new at jquery so the code it's probably wrong.
I need to change an image size by a click for a few seconds and then it should return to the original size, using functions and selectors. I changed the size but I don't know how to return to the original size.
$(document).ready(function () {
if $("myId").click(function () {
if $(this).css({ width: "500", height: "500" }, 1000)