Dipscom last won the day on April 16

Dipscom had the most liked content!

Dipscom

Moderators
  • Content Count

    1,411
  • Joined

  • Last visited

  • Days Won

    50

Dipscom last won the day on April 16

Dipscom had the most liked content!

Community Reputation

2,501 Superhero

7 Followers

About Dipscom

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  • Location
    London

Recent Profile Visitors

8,217 profile views
  1. Dipscom

    Toggle menu

    Right, ok, now I think I am starting to get. What you want is to only run the JS code if the media query condition is satisfied. For that you need to use media queries in JavaScript as well as in your CSS. The example bellow should be what you are trying to accomplish. https://codepen.io/dipscom/pen/mgxOvM?editors=0011
  2. Dipscom

    motion blur with svg gaussianblur (tween only the x value)

    'Ullo! A long time ago I made this test: https://codepen.io/dipscom/pen/yJQgVO It uses an older version of GSAP but it should show you one way of achieving it. Happy Tweening!
  3. Dipscom

    Importing Plugins in Nuxt.js

    Hi H0BB5, Can you show us how you've imported the CustomEase plugin? And, as asked by Jack, did you use the version for the NPM bundling? I do agree with Jack, it does sounds like it's something else, not related to GSAP. Is webpack compiling correctly or are you getting errors in your terminal?
  4. Dipscom

    Toggle menu

    Again, I am at a loss here. I open your codepen, resize the window to be smaller than 768px, the toggle appears, I click it. It animates. I click it again it closes. I resize the window to be bigger than 768px, the toggle disappears. I resize it back to be smaller than 768px, the toggle appears. I click it, the menu opens, I resize the window to be bigger than 768px, the toggle button disappears and the menu stays showing. I resize the window back to be smaller than 768px, the toggle button shows, I click it, it closes the menu. I can't think of anything else I could do with the toggle button and the size of the window. What is it that is not working for you? In more words. What are you expecting to see and what is it doing that you think it should not be doing?
  5. Dipscom

    Toggle menu

    Can you be a bit more clear? I have no clue as to what you are expecting when you say that. When I resize the screen, the toggle button appears and disappears as expected.
  6. Dipscom

    addEventListener not working

    Hi Harp, The events are being fired correctly, the code is executing as expected. You only have missed adding the correct commands on your functions. You need to review what they are supposed to do and write more logic to handle. Here's an example: let startTimeline = function(){ console.log("lets start..."); // When looking at the console, you can see this always runs loading.play(); // This will tell the timeline to play but, once the timeline has played once, it will stay at the end position unless you use .play(0), which will cause it to jump back to the very start. TweenMax.set(progressBarEL, { width: '0%' }); // Here you reset the progressBarEL even though this is meant to be the start of you animation TweenMax.set(heroEL, { opacity: '1' }); // Here you reset the heroEL even though this is meant to be the start of you animation } let restartTimeline = function(){ console.log("restarting..."); // Similarly, looking at the console, you can see this runs correctly when clicking loading.restart(); // You restart the loading bar animation correctly /* But you forget to reset the progressBarEL and the heroEL, the bellow should exist in your code TweenMax.set(progressBarEL, { width: '0%' }); TweenMax.set(heroEL, { opacity: '1' }); */ } There are other little bits in your code that are missing, I encourage you to read your code again, think of all the steps that should be inside each function to generate the behaviour you are looking for.
  7. Bottom line here is the context. "Poor performance" is relative. Is your user's computer going to struggle with that implementation? How much more interaction are you going to have going on at the same time? You don't HAVE to change your current code just because we said it's better to use transforms and opacity only whenver possible. Specially if it is working and not causing problems. There's no point on you spending hours on this when you could be completing the rest of your project. Just be aware that animating the background position is not as efficient as using translation. If your animation starts to get janky, that's a place for improvement.
  8. Dearest @mikel, The beauty of harmonious relationship between shapes, colour, light and shadows transcends flesh.
  9. Hello, hello, Sorry been busy. Well, young grasshopper, where there's a will, there's a way. https://codepen.io/dipscom/pen/c88432c068fae486934051056c8dae4b
  10. Dipscom

    Problems after uglify JS webpack code

    *Magic* And don't thank me, I did nothing. Thank yourself for doing it.
  11. Dipscom

    Problems after uglify JS webpack code

    A tip, you might want to remove as much of the CSS transitions that affect elements that you are animating with GSAP, use one or the other. Not CSS transitions and GSAP on the same element, it always end up causing issues because GSAP makes its calculations and store them but then, the CSS transforms mess with it all.
  12. Dipscom

    Problems after uglify JS webpack code

    Typical, isn't it? Anyways, that's how I usually debug when I get stuck on something. Get rid of everything, add one little bit at a time until it breaks again. Do come back and let us know what was wrong, it's always useful to someone else who might be struggling with something along those lines. And, well done on taking the steps.
  13. Dipscom

    Importing Plugins in Nuxt.js

    It looks like you're using a linter that's compaining about how gsap was set up. When I made my test here, I didn't add a linter. Are you using one? Which? It might be that you will need to customize the linter you're using to allow GSAP to do its thing.
  14. Dipscom

    where is the interactive timeline demo ? [SOLVED]

    The '+02' is causing that label to be a completely different label so, whatever is happening there is not really what you think it is. I can't read and digest all of your code right now. I've got to get on with some work now. But I will try and see if I spot something myself. It might be that you might need different labels depending on which case you are trying to play. Have you tried calculating the length of those nested timelines to see how long they take and if they are pushing their siblings around?
  15. Dipscom

    Problems after uglify JS webpack code

    I've had a quick look and can't think of much from the top of my head. When I ask for a bundle, if you get your project, make a copy, delete everything except that icon 3 and the rollover logic. Then, we can really just focus on the issue. Right now, it's quite hard to see what is going on if I can't change the code to see what it does. There's also the fact you are using an SVG (which is not a bad thing) and SVGs have plenty of gotchas to be aware of. What happens if you try to rotate the <g> element instead of the path itself?