Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

How to scroll a symbol with a separate button

$
0
0

Hi, first of all im sorry for my poor english, it isn't my native languaje.

Im creating a simple web site in Edge Animate and I'm need to create a separated button that scroll an especific element with an overflow:scroll in certain number of pixels.

Here is an simple example of what I need to do:

untitled1.jpg

I need to make that the pink button scrolls the yellow box in to the 7th line of the text. In this case the yellow box is grouped in a symbol placed in the stage with the pink button.

 

I was trying with these codes:

 

 

      $("box").animate({scrollTop: element.offset().top}, "slow");

 

and

 

      $("box").animate({"scrollTop":"600px"}, 750)

 

But they aren't working at all.

 

I will appreciate any advice. Thanks in advance.


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>