Different ways to Animate Images/Icons in JavaScript using jQuery animate function

The ID method

Click on icons to animate. Click the reset icon to reset icons.

The Class method

Click on icons to animate. Click the reset icon to reset icons.

The Data- method

Click on icons to animate. Click the reset icon to reset icons.

The Data- method #2

Click on icons to animate. Click the reset icon to reset icons.