-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[FEATURE] Animation in Feature section #9874
Comments
To reduce notifications, issues are locked until they are
🏁 status: ready for dev
|
Thank you for the suggestion and demo 👍 We cannot include anymore dependencies, because we are at the maximum of files for Vercel, can this be achieved with Tailwind's "Transitions & Animation" https://tailwindcss.com/docs/transition-property |
Yes, we can, but it will result in a significant amount of additional code to write. However, with just one dependency (framer-motion), we can incorporate various types of animations without having to write as much code. Therefore, I suggest considering the removal of any unused dependencies, which would be beneficial. If that's not feasible, then unfortunately, the final choice is Tailwind CSS. |
Yes, for sure we can make it with Tailwind CSS by using make some Javascript code based on the viewport the animation has to be triggered with certain animation effect additionally we can use features like hover and group-hover from Tailwind CSS to make it more intrinsic UI. Ready to work on this and excited to make my contribution. 🎉 |
Hey @Balaji-Batchu I have marked i want to work on this Issue and I am already working on it so please choose another one! |
That is not how it works unfortunately, every dependency has its dependency which has their own dependencies and so on - it is a tree of dependencies
what is "a lot of code", can an example be shared? but please be prepared we might not move forwards with it |
Hey @eddiejaoude I have done this completely with Tailwind CSS only as per your need. Now there is no need to add any dependencies. |
Could you please assign this issue to me? I will proceed with resolving it and create a pull request once the issue is addressed. |
Hey @eddiejaoude !! @sital002 |
Great 👍 Sure I will assign it to you |
The issue has been unlocked and is now ready for dev. If you would like to work on this issue, you can comment to have it assigned to you. You can learn more in our contributing guide https://github.com/EddieHubCommunity/BioDrop/blob/main/CONTRIBUTING.md |
Heyy @eddiejaoude, I've incorporated a custom hook, useElementOnScreen, to enhance React component reusability by efficiently determining an element's presence in the viewport using the IntersectionObserver mechanism. To apply this, I've imported the hook in index.js to monitor the existence of the feature section element: In addition, within the Home component in index.js, I have mapped individual references to each feature section for precise handling:
And these are the changes that I made in the code; I used
Everything is working well, but whenever I am committing these changes, ESLint is giving me these warnings, and I am not able to commit it.
I think ESLint is not permitting the custom hook, or is it? I have tried many things, but it still isn't working. This appears to be an ESLint issue; otherwise, it's functioning perfectly without any errors, as shown in the video. Additionally, I have included the following in tailwind.config.js for animation purposes to generalize it.
So, tell me, what can I do further? I have resolved the animation issue, but now there's this ESLint error. :) Here's the preview of what I have built. biodrop.mp4 |
@eddiejaoude Please look into it!! ℹ️ Monilprajapati has some opened assigned issues: 🔧View assigned issues |
Double The error is...
|
I am so sorry 😢. I am from India so it was not in my mind that it's christmas time. |
Hey @eddiejaoude , done with the animation of the feature section. Now we can move forward to add some different animations in other sections and stuff wherever you want. ℹ️ Monilprajapati has some opened assigned issues: 🔧View assigned issues |
Hey @SaraJaoude Please take a look and merge it if you find it perfect ℹ️ Monilprajapati has some opened assigned issues: 🔧View assigned issues |
PR merged ℹ️ eddiejaoude has some opened assigned issues: 🔧View assigned issues |
Is this a unique feature?
Is your feature request related to a problem/unavailable functionality? Please describe.
The feature section is perfect; there are no issues with it. However, it looks like a static website. To make it more user-friendly, we should make it appear dynamic.
Proposed Solution
To make it dynamic, I am going to use framer motion, which will make it attractive and dynamic. If you approve, I would like to incorporate different types of animations in various sections of the entire website.
Screenshots
Current feature section:
before.mp4
After adding animations:
after.mp4
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
As mentioned earlier, I will be utilizing Framer Motion and creating a common variants.js file to store all the animation variants. This way, we can easily use them in any file. @eddiejaoude I have been a part of this community for a long time, and I have been considering making contributions. Unfortunately, I haven't been able to find the time for it.
The text was updated successfully, but these errors were encountered: