🔹Base Apparel | JavaScript | HTML-CSS | Webpack
Design comparison
Solution retrospective
Hi again! The goal for this challenge was to try something new. I had always wondered how custom cursors were made on most of the "modern" webpages you see these days. So this challenge was a perfect excuse for me to learn about them.
Features
- Added a custom cursor.
- The custom cursor expands and acts as an
outline
when clicked on the input.
Questions
- How well does this work on your device?
- Did you find any bugs?
Known bugs
-The cursor's movement tends to become awkward upon resizing the window. (Clicking on the document should fix this issue, most of the times)
Click here to view the Live Site
P.S. If you have any questions for me, Feel free to comment or message me on slack :)
Community feedback
- @JanselinPosted almost 3 years ago
amazing cursor effect I loved it! The issue I'`ve found on my pc is that i cant access the imput since there's no scroll bar, have you hide it with overflow:hidden? I cant scroll down 😅
anyway I loved this one! Happy coding 🤗
Marked as helpful1@buneeIsSloPosted almost 3 years agoHi! @Janselin, Thanks! I'm glad you like it. I did add an
overflow: hidden;
to thebody
. This was done to prevent the page from showing scroll-bars if or when the cursor gets close to corners of the viewport.I've refactored some code, Let me know if it works fine now. If it doesn't, can you Please share a screenshot of the page on Pasteboard?
Either way, I really appreciate your help :)
0 - @vanzasetiaPosted almost 3 years ago
👋 Hi Bunee!
🎉 Congratulations on finishing this challenge! I kinda like the custom cursor that you created. It has an awesome transition once I clicked the
input
element. But, I found some bugs on the cursor:- First, when the pointer is above the image, the image becomes scary. The circle becomes bigger and makes the image become black. I guess it is because of the overlay inside the circle.
- After I don't focus on the input element, the custom cursor becomes a full width of pink line. It looks like a scanner.
Anyway, here is my feedback:
- Accessibility
- Any image that has
aria-hidden="true"
should not have alternative text. - Use CSS to uppercase the text. The uppercased word in the HTML will be spelled by the screen reader (spelled letter by letter).
- You don't always have to wrap
img
withfigure
element. Usually, I usefigure
element if I needfigcaption
. - For the error message, add
aria-live="assertive"
orrole="alert"
to make sure the user of assistive technology gets notice directly. Also, usep
element instead ofspan
.
- Any image that has
- Visual
- On mobile landscape view (640px * 360px), the hero image gets repeated in x direction.
To be honest, I don't understand the JavaScript code and webpack, so I can't give any feedback about it.
That's it! Hopefully, this is helpful!
Marked as helpful1@buneeIsSloPosted almost 3 years agoHey! @vanzasetia, Thanks! This was first time I tried something like this so, I expected it to have bugs.
-
This effect was intentional. It's an effect most aesthetic/modern websites have these days. Here's how I did it
-
I don't know what you mean by this, It'd be helpful if you could recreate this bug and share a screenshot on Pasteboard
-
As far as accessibility issues are concerned, I've made a note of the fixes and will implement them in future projects.
-
This is another intentional effect, I only did this so that the sides of the image wouldn't look empty on tablet view. Here's how I did it
Thanks for the help :)
0
Please log in to post a comment
Log in with GitHubJoin 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