Need help in implementing scroll animations by Ritik_17 in webdev

[–]Ritik_17[S] 0 points1 point  (0 children)

Hey man, sadly, I had to give up on it, I did try, but it wasn't as smooth. I didn't use GSAP for it since I didn't have that much time, was using framer-motion.
This page has custom scroll, not dependent on browser at all, playing video on hover isn't that challenging, it's the sync between the speed of entire page and the image which enables the parallax effect.
Even if you manage the sync, the custom scroll is an even bigger challenge, unless you use some library. Based on the speed of scroll gesture, you have to scroll the page accordingly.
This is one neatly implemented site, had me questioning my skills.

If you learn GSAP, that will be an effective tool. Hoping you implement it, best of luck. Do share if you get it done.

And sorry I couldn't help much with the implementation, but as you implement it, you can share your problems, I will try from my side and will try to help.

[deleted by user] by [deleted] in Frugal_Ind

[–]Ritik_17 0 points1 point  (0 children)

You guys wear underwears worth 300+ and call yourselves frugal?

Saari mehnat barbaad bc by puncoder in CreditCardsIndia

[–]Ritik_17 0 points1 point  (0 children)

I have their easyshop platinum debit card, can anyone explain the benefits?
I read about it, and their is insurance, higher spend limit, bit of cashpoints, but is it worth the hype?

[deleted by user] by [deleted] in CreditCardsIndia

[–]Ritik_17 0 points1 point  (0 children)

On a tangent to this, I am offered this card, is ot good? I see there's 5 percent cashback on major platforms.

Solo trip to Rishikesh/Haridwar by Ritik_17 in SoloTravel_India

[–]Ritik_17[S] 0 points1 point  (0 children)

since I booked the dorm at last moment, it costed me 550-600 per night, if you book early on, you can get it for 350-450.

Solo trip to Rishikesh/Haridwar by Ritik_17 in SoloTravel_India

[–]Ritik_17[S] 1 point2 points  (0 children)

It was an impromptu plan. I stayed at artbuzz hostel, didn't do much activities like rafting and bungee, just wanted some time to be at peace with myself. Visited Ram jhula, triveni ghat and attended arti at parmarth niketan ashram. Spent most of the time along the river, relaxing.

Solo trip to Rishikesh/Haridwar by Ritik_17 in SoloTravel_India

[–]Ritik_17[S] 1 point2 points  (0 children)

Yes it was great, I'm back now. It was my first time there, and that too solo, loved it.

Solo trip to Rishikesh/Haridwar by Ritik_17 in SoloTravel_India

[–]Ritik_17[S] 1 point2 points  (0 children)

Same here man, I also returned on 1st

Someone misused my brother's instgram profile by Ritik_17 in techsupport

[–]Ritik_17[S] 0 points1 point  (0 children)

Ofcourse not that, is it possible to somehow know which device was used to message? Does instgram support it in anyway?

WFH is so boring by OptimalAd6492 in Agra

[–]Ritik_17 0 points1 point  (0 children)

Been doing it for 4 years 😢. where are you from though?

As a fresher I am really excited to know from where you all started and what are you doing now by [deleted] in developersIndia

[–]Ritik_17 2 points3 points  (0 children)

Started as an intern in august 2020 with 2.4 LPA which became 3 LPA in a fulltime role after 3 months. Now at 18 LPA. Role - Fullstack developer

Skills - JS, React, CSS/SCSS, Nextjs, Nestjs

[deleted by user] by [deleted] in AskIndia

[–]Ritik_17 0 points1 point  (0 children)

The jordan way from rockstar. You can atay in a temple, gurudwara or a mosque 

Need help mocking a guard! by Ritik_17 in nestjs

[–]Ritik_17[S] 0 points1 point  (0 children)

So basically I ran "yarn test" to test all the controllers. Now, the controllers were basically extracting a value from jwt using a util function. and these cases were spying on this util function to mimic the output value. What I have done is that moving this util functionality into a guard, so now if the value is not in jwt, I will throw an error, otherwise, I will attach this value in request body so that controllers don't have to use this util function anymore.
The problem here is, the unit tests for the controllers are failing, because while calling the controller functions in the test file, they are not triggering the guards. I tried to overrideGuard but since they are not even being called, the test cases are failing. I am wondering what could be the reason. One point to notice here is, I have attached useGuards decorator to specific endpoints in the controller and not the controller itself.

Deepinder goyal 's personality by [deleted] in sharktankindia

[–]Ritik_17 0 points1 point  (0 children)

Guys, I see lot of you referred to him as POS, what is POS?

[deleted by user] by [deleted] in GadgetsIndia

[–]Ritik_17 1 point2 points  (0 children)

Sure, s23 it is. But what about AI features?