Image - width of the div and the issue of scale. Help, please

Hi guys,.

I have a problem with the bgr image that I can't solve. Here's a tutorial (Web Animation and interactivity with Adobe Edge animate - Designers Fiesta 2012 - YouTube). On the beginning on this movie, this guy has all its items on stage. There is an image called Green who is a div itself (as opposed to a bgr image). Size of this div is much shorter than the image itself, and I don't know how he did it. Whenever I import my (wider) image on the stage, it shows that it is the actual width. I need to be inside the shorter div due later scaling '' operation. '' It's probably very easy to do, but I am new to AE so I would really appreciate your help because I'm stuck.

Thank you very much

Hello

SYM. $("elementName") .css ({'background-size': '100% 100% ', 'background-repeat': 'no-repeat'});

The above code will be "resize" or "resize" your image.

You can write on the Board of compositionReady or on creationComplete Panel.

elementName is the container: the div tag

Now, how do I load an image inside a rectangle (tag div) using the code:

SYM. $("Rectangle") .css ({' background-image': "url(images/picture.jpg)", 'background-size': '100% 100% ', 'background-repeat': 'no-repeat'});

Tags: Edge Animate

Similar Questions

Maybe you are looking for