Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jaexplorer's Achievements


Newbie (1/14)



  1. How am I calling it immediately? It asks for a function, so I give it one. But only accepts a function within a function to work properly.
  2. I got it to work, but by luck. Are you able to explain why this works but this doesn't? Works: t1.add(function() { loadContent(activeClass.getAttribute("value")) }); Doesn't Work: t1.add(loadContent(activeClass.getAttribute("value")));
  3. Hi, I would like to know how to properly use Ajax with Greensock, as currently i'm failing at it. I have: Clicks a nav link var t1 = new TimelineMax(); // An animation that hides the page content and does some page animation A function call to ajax which will load the content // Some animation to reveal the loaded content At the moment as soon as I click a nav link, the content loads immediately by the ajax, then the animation occurs. Any tips?
  4. Jaexplorer

    Width Calc

    Have you thought maybe your extending it's life span by continuing to support it? If we stop supporting it, eventually the "clients" will drop it. You don't even know whether all those that have IE, even use it.
  5. Jaexplorer

    Width Calc

    I agree, the sooner we stop supporting IE. The better the world will be. There no reason to continue supporting IE, it has security issues and all sorts of issues.
  6. Jaexplorer

    Width Calc

    I couldn't get yours to work. Heres the pen I made. The blue is supposed to stretch to all edges (though in this example, i'm just focusing on the width). https://codepen.io/jaexplorer/pen/wLzmPY That being said, i've been able to get it to work by editing the parent padding (see attached)
  7. Jaexplorer

    Width Calc

    I found this worked. But i'm rather disappointed I had to resort to this answer. Especially with css grid and dynamic elements. I thought calc would of been covered in greensock.
  8. Jaexplorer

    Width Calc

    I'm trying to do this: https://pin.it/vxuze2yvii7qrd It starts with padding, then extends to the edge, then back to normal. But I don't know how to do the width without doing calc. All it is is simply grab the current width and plus 4rem. But rem is CSS not JS.
  9. Jaexplorer

    Width Calc

    I read this post, I didn't find it useful.
  10. Jaexplorer

    Width Calc

    Hi, first time posting. Sorry if this seems informal. I've just noticed when I use calc within my greensock function, the duration of my tween becomes 0 and snaps to the result straight away, instead of animating. I'm trying to animate the container to stretch to the edges, eg. width: calc(100% + 4rem), doesn't work. I don't know a work around this? Help pls