Jump to content
Search Community

Jloafs

Premium
  • Posts

    52
  • Joined

  • Last visited

Posts posted by Jloafs

  1. Thanks @akapowl

     

    That gets someway there but it doesn't seem to quite snap to the top properly. Is there a way to force the snapping as soon as the section scrolls in? At the moment this can kind of get stuck between halfway 2 sections or it reaches the top after a wee delay which doesn't feel smooth.

     

  2. I'm just playing with scroll smoothing ( which looks amazing) but ran into an issue with position sticky. The desired effect is that each section in this pen should be sticky and not scroll off the top of the viewport with each subsequent section scrolling in over the top. As soon as I add scrollsmoothing into the mix this breaks. Any thoughts? Ideally I'd like the sections to animate to the top as soon as they enter the view port. Any help would be much appreciated - I'm not an expert btw (understatement).

    See the Pen zYRyYGp by jloafs-DM (@jloafs-DM) on CodePen

  3. Hi guys

     

    I'm a club greensock member  and I can't recall how to download any of the gsap plugins - can someone please point me in the right direction?

     

    Best

    Jason

  4. Thanks Zach. You're right - the flex grow property is definitely the way to go.

     

    I've put a basic pen together but it's a long way off working. I've been trying to get the sidebar nav to toggle the active class that applies the flex-grow to the active sidebar element. Ideally would eventually want to hook this up to scrolltrigger too so that the sidebar elements navigate as their associate section scrolls into view. Any thoughts on how to handle this? Sorry I'm a bit out of my depth :-)

    See the Pen GRvOWNa by Jloafs (@Jloafs) on CodePen

  5. That's what I thought initially but I couldn't figure out what flex properties to use to position nav elements at the bottom then animate to the top - what are the 2 position states I need to use? Each item in the nav needs to push up to the top individually (pushing the nav item above it up without moving those below it). Does that make sense?

  6. Hi all

     

    Does anyone have any idea how to achieve this. I'm trying to animate this menu so that the menu items move from top to bottom (shown in the attached images) when clicked or based on scroll trigger position.

     

    The triggers are not the issue - I just can't figure out what properties to animate. I had initially thought I could achieve using justify content etc but that doesn't work.

     

    Many thanks for any help.

    menu-1.jpg

    menu-2.jpg

  7. Making some progress ( a little).

     

    I'm focussing on animating the text element on the left.

     

    I think I have the slide-in working OK but struggling with sliding the text out of thee bottom of the container.

     

    Ideally the first text should slide in from left then out of the bottom before the next item slides in from left and so on.

     

    Is there an easy way to add this to my timeline?

     

    Codepen here: 

    See the Pen bGrWarv by Jloafs (@Jloafs) on CodePen

     

    Many thanks for any help.

  8. Thanks Cassie

     

    I think the part I'm struggling with is I'd normally have list items for a slider either stacked horizontally or vertically (depending on the direction of the slider) and hide them using overflow hidden, then scroll them into view using a transform. The big difference I guess in this case is that while the image slides in from the right as I'm use to, the text is coming from a vertical position. I guess I'm trying to figure out how my list of slides would have to stack - like how would they appear if the overflow wasn't hidden - as each slide seems to contain element that come into view but from different directions. 

     

    Even as I write this I think it's difficult to explain. Does this make any sense?

  9. Does anyone have any ideas on how to approach this slider concept? (See screen recorded video on dropbox)

     

    Each element in the slider has an image and 2 text elements that all animate in different directions. I've only ever done a simple slider that translates a whole slide out of view as another slide comes into view.

     

    Appreciate any help at all on this, however small - I literally can't even think how to start it lol.

     

  10. Hi guys

     

    I'm pretty inexperienced and just trying to achieve something quite simple using draggable plugin. Can anybody help me to stop the images inside this  draggable container from scrolling beyond the left and right edges of the first and last image?

     

    I've read through the documentation and tried scrollLeft and bounds etc but just can't get anything to work.

     

    Many thanks in advance :-)

    See the Pen WNEvGOy by Jloafs (@Jloafs) on CodePen

  11. Hey guys

    I'm trying to apply a repeating wiggle on an element that also changes its Y value using scroll trigger - ie the element is continuously wiggling regardless of scroll but the Y position change is triggered on scroll. Is that even possible? currently I seem to be able to achieve only one or the other.

  12. Hi everyone - thanks heaps in advance for any help. I'm trying to use the custom wiggle plugin for the first time on a pseudo element. I want the pseudo element to wiggle on rotation and loop infinitely. Really struggling with this - I don't think the custom wiggle is being used for the ease. Can anybody spot where I'm going wrong?

     

    gsap.registerPlugin(CSSRulePlugin, CustomEase, CustomWiggle);
    var rule = CSSRulePlugin.getRule(".intro--image-wrap:before"); //get the css rule for the :before psuedo element
    CustomWiggle.create("iconWiggle", {wiggles:10, type:"random"}); // create the wiggle
    const introIcons = gsap.timeline({})
    introIcons.to(rule, {duration: 0.5, cssRule: {rotation: "2", ease: 'iconWiggle'},yoyo:true, repeat: -1, })

     

×
×
  • Create New...