Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
May 02, 2018 May 02, 2018

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

555
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 07, 2018 May 07, 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!

Translate
Community Expert ,
May 07, 2018 May 07, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 07, 2018 May 07, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines