Jump to content
GreenSock

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

atulraj89

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

2 Newbie

1 Follower

About atulraj89

  • Rank
    Member

Recent Profile Visitors

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

  1. Hello @ZachSaucier, Yes I have the index in active slide, I should Edit the main questions headline, Actually I need to add class on the section (scroll-able section) with the current index of active slide, So I want to know is there any GSAP way to do this, or I need to add it manually by JS like this. So what I am doing here, removing class active from all the slides and adding the class only on selected index and this is what I need. just want to know is this ok to do it like this or is there any GSAP way to do this? I mentioned this in question body.
  2. Hello Everyone, in Timeline, I want to get the index of current animated item, How to do that? for example when scrolling or dragging in this vertical slider, dots animating and animated dot has active class, I want to get the index of the animated dot, or you can say active dot and add the same active class on the sections, so they can relate and I can style the specific section. note: This is vertical slider created by CRAIG, I just modified it as per my needs.
  3. Hello Everyone, Maybe someone also come here like I did searching for the same clip-path issue on Mozila. So its fixed in the latest versions, All you need to do is update your firefox mozila. and clip-path issue will be fixed.
  4. I have already tried this, but its not working , check this latest example, I have did some modifications and made it as I needed, but that problem of window scroll while the mouse on the masterWrap is still there, Can you please have a look. https://codepen.io/atulraj89/pen/ExPMoqj So the need is, when I am using mouseWheel to run slider and my Mouse is over the slider, its should not scroll the window, olny slider needs to run.
  5. @PointC, Thanks Craig, Its awesome and helped me a lot, but after modification it has a small problem, I should't say this a problem but a small UX issue, Just mentioning here, so that you will suggest some solution of that as well. So once you are using it in a window sized 100vh or less, or body's overflow hidden, then with mouse wheel scroll its working superb as expected, but when you use it within a page which has scroll or more content in body, then with mouse wheel scroll its scrolling the items and page too. ideally if we have mouse over the #masterWrap, then only carousels should move not the body, But its completely understood as this is not a normal slider and a full page slider, so its working a expected.
  6. Hello @PointC, Thanks for the solution, awesome it is, Actually initially I want to show only first 3 items, that's why that padding was there, but its messing with the drag. One more question: is it possible to loop it, like infinite scroll? Thanks Again
  7. Hi @PointC First of all thanks for this awesome Slider. I have left private message to you, but after reading the complete thread I feel I should Ask it here , so it will maybe useful for someone else too. So using the example of yours, which is a full page slider, I am trying to create a slider which is not full page and shows 5 items at a time, I have forked the pen and create this, with a small function which will run this on keyboard up and down arrow key too. https://codepen.io/atulraj89/pen/yLewvZe So my problem is, related to dragging, Everything is working as expected, but while dragging, after item-15, I am not able to drag it further, Because of height, I can see item 16 and 17, but not 18, is it possible to drag it to the end like its working with Mouse wheel and keyboard?and same thing happening while dragging back to upwards, I am not able to drag it before item 3. So how drag function working here, how you calculating the drag area? I have tried to find the code related to it but not able to, need your expertise on this.
  8. Hello All, I am creating vertical slider kind of functionality, with smooth scroll. I have found in a discussion the window smooth behave by @OSUblake , https://codepen.io/osublake/pen/QqPqbN, but its a smooth scroll which depends on the mouse wheel, and its scrolling depending on the mouse wheel speed, I have 2 questions here, 1. in this example whole window is scrolling with smoothness, is it possible to apply same thing on a div? 2. if yes, then is it possible with GSAP to scroll one item at a time. like in the given image, I want one test item to scroll with one mouse wheel stroke and smoothly, Just an Idea needed. Here is the thing Which I am creating, Note: I have shockingly green, if any paid plugin need to use in this example to achieve the result.
  9. Hello, @mikel Its nice idea, Thanks for it. @ZachSaucier Thanks for the learning path above.
  10. Just watched it, Thanks a lot for the support, Love this community, Any path if you can suggest me to learn GSAP in and out?
  11. Hey @ZachSaucier, Thanks a ton, Everything now working as expected, as you suggested to use GSAP's Timeline to sequence things more easily. I have tried this, but I am stuck with syntax, when I using Timeline, each and every item going as per TL, which Mean, first M is animating and once it complete the animation, then the h starts animating, But I want a set of GSAP animation to run once and then the second once, For Example, when I am converting the below code to TL based, every line is executing after the previous one completes, And yes this is the use of TL. // animate M in aim for first effect gsap.to("#m-o", { duration: 2, morphSVG: "#m-fc" }) // animate high for first effect gsap.to("#h-o", { duration: 2, morphSVG: "#h-fc" }) gsap.to("#hi-o", { duration: 2, morphSVG: "#hi-fc" }) gsap.to("#hig-o", { duration: 2, morphSVG: "#hig-fc" }) gsap.to("#high-o", { duration: 2, morphSVG: "#high-fc" }) gsap.to("#dot-1-o", { duration: 2, morphSVG: "#dot1-fc" }) But I want this whole animation run at once, and then the second part of my animation, for which I am using delay for now, gsap.to("#a-o", { duration: 2, morphSVG: "#a-sc", delay: 2}) gsap.to("#ai-o", { duration: 2, morphSVG: "#i-sc", delay: 2}) gsap.to("#m-o", { duration: 2, morphSVG: "#m-sc", delay: 2}) // animate high for second effect gsap.to("#h-o", { duration: 2, morphSVG: "#h-sc", delay: 2}) gsap.to("#hi-o", { duration: 2, morphSVG: "#hi-sc", delay: 2}) gsap.to("#hig-o", { duration: 2, morphSVG: "#hig-sc", delay: 2}) gsap.to("#high-o", { duration: 2, morphSVG: "#high-sc", delay: 2}) how to use it in TL, so that the upper code will run and then the below part, which is using delay for now.
  12. Thanks a Ton @ZachSaucier, You are a life saver, but again this beginner need more help of yours, I have created the SVG , the way you guide me above, and results are now 99% what I wanted it, Thanks again, So 2 things I need your help and guidance on, 1. As you suggest just merge the layers and morph between states, but When I am merging the layers with AI, its wrapping all the layers in a G, group element, and as per docs, morphing do not work on whole Group, it works only on D attribute of a Path, So how to morph between states? So once I was not able to do this with Whole state, I choose to go one by one, and 2. I need your more help on clipping, as you can see in the above pen, without clipping, its working fine, the way I want, but When I clip it with image, its not working as expected, Is it possible to clip it on the go, as I want to show the Blue text in start and then clip it when animation starts, but The way I am clipping the Original H or M as you suggested, its showing clipped from the very beginning. the way I am clipping it <clipPath id="shape2"> <polygon id="m-o" class="cls-1" points="207.11 86.61 207.66 86.61 236.29 284.65 262.33 284.65 290.96 86.61 291.43 86.61 291.43 284.65 320.62 284.65 320.62 3.29 275.34 3.29 249.31 181.2 248.76 181.2 223.28 3.29 177.45 3.29 177.45 284.65 207.11 284.65 207.11 86.61" /> </clipPath> <image clip-path="url(#shape2)" xlink:href="../assets/intro-BG-asset.jpg" /> Thanks in advance. Actually I got an Idea and trying to implement it, for fixing the H in high in the end, and it worked, bold part in 2nd question above is still the pain. So what I did to solve the last H, is : gsap.to("#high-sc", { duration: 0.3, opacity: 1, delay: 1.8}) so when the second animation is about to end, this only H element changes its opacity to 1, and showing perfectly, is this a valid and ok approach?
  13. After reading your comment 2 or 3 times, I got what you actually want to say about the assets Prep, Actually I am not familiar with AE, that's why this confusion happened, So Got the point about the Assets prep as I took help from a friend to understand this, One more this I want your suggestion on, like you gave for the animation above, So this is the complete scenario, Screen start with this view, (yellow part is the full viewport) then it will change to this with in a span of 2 or 3 second animation, and once it will go to the end of the screen, it will shrink from its left, and become this So I need your suggestions for the SVG prep and animation tricks? The morph-SVG approach I am trying right now is good for this type of animation, or you suggest something else? I really appreciate the time and effort you are doing for me,I will be grateful for this help.
  14. Hi @ZachSaucier, Thakns for the reply Yes I have purchased it with other ID and now I am using this with my VUE project, Thanks for helping in that as well in another post of mine. by using awesome instructions given by you, I have managed a fair SVG combination, But still I am getting the problem with its transition Position, As you can see the updated Codepen Above, The Last H is still moving from its position to left, and this is because I have translateX the clipped Image, which is not right I guess, So if you can see it once and help me out to move H its original Position to its right, Like this and when this H is getting morph, the Full Stop next to it, should also move with it to its right, So if I need the same animation with M in AIM and need to move whole HIGH word, so I can manage both the thing with same trick. any Suggestions for updated code please?
×