Webkit-transition works OK in HTML4 transitional but not in HTML5?

It looks like the problem isn't the transition, but the setting of properties.

It looks like the problem isn't the transition, but the setting of properties. ElevHeight = windowHeight/listHeight*scrollBarHeight; document. GetElementById('elevator').style.

Height = elevHeight; The CSS height property takes a length not an integer, and lengths (other than 0) require units. (There may be other issues, probably similar ones, but that's the first one I spotted in your code) The Doctype you are using (HTML 4.01 Transitional with no URL) is considered by browser to be an indication of legacy code written before the proper (or almost proper) use of web standards became common (i.e. Around the late 90s).

This triggers Quirks mode. The HTML 5 Doctype is designed to trigger Standards mode, in which browsers follow the standards much better (and are much more consistent which each other — this is highly desirable). One of the bugs that is emulated in Quirks mode is treating integer values as pixel lengths.

You need to specify a unit. E.g. ... + 'px'.(You also have some errors in the HTML that would be detected by a validator).

I suspect the problem is down to the fact that it looks like you're trying to trigger the transition by changing CSS properties programatically with Javascript. I'm not entirely sure how well that kind of functionality is supported now, or how well it will be supported in the future. Really, CSS transitions are intended for enhancing the UI experience, not for this kind of advanced animation.

Seems that you're trying to bend CSS to make it do stuff it's not designed for. You might want to reconsider your approach. It might be possible to achieve what you want using CSS animation keyframes, else why not just use a Javascript library like jQuery to do the heavy-lifting?

That approach would be much better suited to what you're trying to achieve.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions