Skip to main content
Participant
May 3, 2018
解決済み

How to make a html-5 banner with fixed width and adaptive height?

I want to make a banner with fixed width(300 px), but adaptive height ( minimum height should stay 600 px). I created my banner in Adobe Animate and this and cheked boxes " Make responsive- Height" in Publish settings but generated function changes both height and width and doesn't make height bigger, than 600 px. Help me please

    このトピックへの返信は締め切られました。
    解決に役立った回答 Joseph Labrecque

    Sure, you can modify the code generated within the html file to only execute the responsive scaling if the window inner height is less than 600 (for example). This way it will never get taller than 600px. Of course, you can add all sorts of logic here if that is too simple. Make sure not to override html on publish!

    返信数 2

    Legend
    May 7, 2018

    Animate doesn't do responsive scaling in the sense of the word that everybody except Adobe uses it. Animate's so-called "responsive" mode is just stretching, the same as Flash has supported since forever.

    So if you want to dynamically adjust the height of your movie, you'll have to do it yourself, by manually changing the stage dimensions at runtime.

    Joseph Labrecque
    Community Expert
    Community Expert
    May 7, 2018

    Sure, you can modify the code generated within the html file to only execute the responsive scaling if the window inner height is less than 600 (for example). This way it will never get taller than 600px. Of course, you can add all sorts of logic here if that is too simple. Make sure not to override html on publish!