Skip to content
Submitted about 14 hours ago

Bookmark-landing-page Animation API, RequestANimation, Vanilla

vite
LVL 3
Alex•345
@Alex-Guar
A solution to the Bookmark landing page challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

In this project, I was able to work with different aspects of web design. Firstly, I used JavaScript, the Web Animations API, and requestAnimationFrame() to achieve the animations I wanted.

I would like to improve the way I write and organise my code. This is one of my next goals.

What challenges did you encounter, and how did you overcome them?

I encountered several challenges. Firstly, I had problems controlling my animations with requestAnimationFrame(). For instance, I wanted to determine the scroll position when someone clicked on a navigation link. However, after consulting the documentation, I was able to solve this problem.

I also had difficulties creating the shape behind the images in the hero section. In my initial design, I wanted to use SVG, but it didn't work as I expected. So, I decided to use a ::before pseudo-element instead.

What specific areas of your project would you like help with?

After receiving feedback on my previous projects, I started thinking about how to organise my JavaScript code. I decided to separate the animations into different files.

I would appreciate your comments on this approach. Do you think it is a good way to organise the code?

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Alex’s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord