I want to put a picture/s of cloud images like vector of clouds that will slowly, but infinitely animate form left to right, or right to left, on my website background. I'm not not good with coding but I thought a jQuery plugin should do the trick. I already have a gradient background with CSS so I'd just like to put some white clouds to animate between the bg and content of the site. Sorry if this is a very "Duh" question! Or maybe HTML5?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Adding a timeout to a render function in ReactJS
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
You can do with pure CSS animation:
HTML:
CSS:
You can alter background position using jquery and intervals:
http://www.catswhocode.com/blog/animated-background-image-with-jquery
*The demo gives a 404 page, but download the ZIP file and you are good to go, and remember to change the repeat background setting from
repeat-y
torepeat-x
. Depends on what you want.PS. They use clouds in the downloadable example! ;)
maybe you should consider this question and the answer markup to help you: