Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
DjKarimi

scrolling with tweenmax not work in iframe

Recommended Posts

this sample download and document form work :

http://blog.bassta.bg/2013/05/smooth-page-scrolling-with-tweenmax

 

 

but but but iframe not work scroll :(
 
<iframe id="ifrmView" border="0" class="brNon wFull" scrolling="yes"></iframe>
 
And Source :
 
$('#lstExplorer li').live('click', function (e) {
    var URL=$this.data("path");
    var Type=$this.data("type");
    $("#ifrmView").attr("src","PanelView.php?URL="+URL+"&Type=" + Type).load(function(){
       this.contentWindow.setLoadInit();
       //setScrollAnimation($(this.contentWindow));
    });
});
 
in content iframe :
 
<script src="JavaScript/GSAP/TweenMax.min.js" type="text/javascript"></script>
<script src="JavaScript/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
function setLoadInit() {
setScrollAnimation($(window));
}
</script>
 
<div> ....

 

 

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,

 

Not really sure I can help you with what you have provided. If I understand correctly you are having trouble with some code you found in a tutorial. 

Have you tried contacting the author?

We really have to stay focused on problems directly related to the GSAP API. 

 

I would suggest to get proper help that you make files available that can be tested. Currently, the code snippets you provided don't do much to help us know what isn't working.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×