Copy link to clipboard
Copied
Hello, does anyone know how to add a published CC Annimate html file to the <body> background of a Website. I uploaded the published images, js and html files to my server and used this css:
body { background: url(http://test1.theimagedepartment.com/annimate/Ballard-Republic-Website-Background-Annimation.html); }
but no luck.
Thanks in advance.
HTML elements that support the background property only allow setting the background to a solid color, gradient, or image. You can not set a background to an arbitrary HTML element.
You can fake it though. Google for "HTML canvas as background".
Copy link to clipboard
Copied
your wordpress server says there is no animation at that address
Copy link to clipboard
Copied
Thanks but I'm not sure what you mean by that. The html file does display the animation on its own http://test1.theimagedepartment.com/annimate/Ballard-Republic-Website-Background-Annimation.html I'm just trying to figure out how to make it part of the <body> background.
Copy link to clipboard
Copied
betterbranding wrote
Thanks but I'm not sure what you mean by that. The html file does display the animation on its own http://test1.theimagedepartment.com/annimate/Ballard-Republic-Website-Background-Annimatio n.html
i see this;
Copy link to clipboard
Copied
HTML elements that support the background property only allow setting the background to a solid color, gradient, or image. You can not set a background to an arbitrary HTML element.
You can fake it though. Google for "HTML canvas as background".