Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anyone know why my HTML5 animation disappears?

Featured Replies

Hi,

 

I've recently been having trouble with my website. It seems there's problem after problem. Doesn't help that I'm a bit of a noob at web coding, etc.

 

Anywho, I've encountered a problem which is the fact that when i upload more content to my website, the html5 animation that i done a bit up the page disappears and only shows it's grey background and shape. It took awhile to realise why it wasn't there, until i started deleting things it reappeared.

 

Does anyone know why this is? Do I have like a filesize limit or something? Is there a way to carry on adding content without losing the animation.

 

Here is a link to what the animation is supposed to look like...

 

www.adamsdezineshop.com/test

 

and here is it not working with added content

 

www.adamsdezineshop.com/test/index.php

 

Btw, I've tried with different, easier images. Still no joy. Also the fact that one is html and the other php doesn't matter as it never used to work in html either.

 

Thanks for your time.

 

Adam :)

Open up the developer console (F12) then go to network. Then reload your page, you will see that most of your images have the error 404, make sure you have put them in the correct directory.

I would opt for a jQuery slider than a HTML5 canvas one, something like Nivoslider can achieve the same effect but with better cross-browser support.

  • Try placing your scripts just before the closing <body> tag. You shouldn't really have scripts directly in your html structure, or wrapped around a div.
  • When the page has finished loading it adds another <body> tag for some reason, directly before the <canvas> tag.
  • Some of the markup you have used is no longer used, so it's worth validating too http://validator.w3.org/

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.