Flash animations converted to HTML5 do not fit in div

Asked

Viewed 43 times

0

I converted a series of flash animations to HTML5, but after the conversion the animations (now in Html5) are not set inside the DIV.

Before the conversion it was like this:

<video src="caminho/animacao.swf" autoplay controls ></video>

After the conversion I -intuitively- changed to:

<object class="myObject" type="text/html" data="caminho/animacao.html"></object>

where:

.myObject {
              height:450px;
              width:650px;
        }

I’m sure the problem is my inexperience with css and html as I have more back-end experience

Edit: animation Html5

  • What doesn’t it fit? The animation scrambles the size of the div? The div cuts the animation? And what is the animation code?

  • Got a little confused, you want to align the div.myObject on the page, or align the animations that are inside the div.myObject? If so, post the full content of the animation and the ok page

  • The div has a fixed size on the page. And there are several animations of different sizes. What I’m not getting is to make these animations fit within this fixed size div. The smaller animations that the div is misaligned and the larger animations that the div only display the part that fits in the div.

  • the path of the animations are recorded in a table. The animation displayed is selected in a menu.

  • Inside the page . html of the animation there is a function that arrow the dimensions of the animation. You can change this or not?

  • I believe that yes, the problem and that are numerous animations would be very laborious. would like to leave prepared so that when sending the animation to the application, this adjustment would be generated automatically.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.