Can I Create This Tricky Animated CSS Review Card?


[ad_1]
https://i.ytimg.com/vi/VPVu1148TU0/hqdefault.jpg



Review widgets are one of the most common elements you will add to any ecommerce page which is why it is important to be able to create them well. In this video I attempt to copy a design for a review widget while also adding fancy animations to the widget. This is my first time attempting to solve this issue so you can see my thought process and how I go about debugging and solving this problem.

📚 Materials/References:

GitHub Code: https://github.com/WebDevSimplified/advanced-rating-widget-css
Reference Design: https://uidesigndaily.com/posts/figma-reviews-day-1573

🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified

⏱️ Timestamps:

00:00 – Introduction
00:42 – Setup
01:07 – Planning
03:18 – Card CSS
05:32 – Card Header
16:04 – Search Bar
25:59 – Review Section HTML/CSS
37:39 – Review Button
40:34 – JavaScript Review Rendering
59:37 – Animations

#CSS #WDS #LiveCoding

Original source


46 responses to “Can I Create This Tricky Animated CSS Review Card?”

  1. Your videos are awesome. As a beginner, I believe i will one day get to your level of understanding and logical thought. That said I dont think i will ever be as fast as you. You fly through this code. Damn.

  2. Not so long ago I had to do something pretty similar on a project. My only regret being that I didn't use the <progress> html element for it since I feared I wouldn't be able to style it on every browser but I'm pretty sure this is no longer an issue if you use the right selectors.

  3. @web_dev_simplified please a short course on how to make image responsive. When I use background size cover when I compute for a small screens thé image doesn't fit well . WE dont see all thé image but juste à side.

    It will be really helpful to me.

    Also a course on how to integrate PayPal cart chekout with PHP.

  4. @web dev simplified please a short course on how to make image responsive. When I use background size cover when I compute for a small screens thé image doesn't fit well . WE dont see all thé image but juste à side.

    It will be really helpful to me.

    Also a course on how to integrate PayPal cart chekout with PHP.

  5. @webdevsimplified please a short course on how to make image responsive. When I use background size cover when I compute for a small screens thé image doesn't fit well . WE dont see all thé image but juste à side.

    It will be really helpful to me.

    Also a course on how to integrate PayPal cart chekout with PHP.

  6. Speed is commendable when you write js. I am a front-end developer and I have learned CSS and JavaScript but I think I need to update my JavaScript knowledge again. For CSS I think I'm ok thanks to CSS battle dev. Is there anything to practice JavaScript daily to learn more on optimization/best practices etc.??

  7. For the search bar, I'd probably use a CSS style on the input element itself that adds the icon through something like this: background: url('magnifying-glass.svg') no-repeat left; padding-left: 16px;
    That way you'd have it inside of the actual input. I guess you could also work with absolute positions and some fancy selectors.
    .search-bar { position: relative; }
    .search-input-icon { position: absolute; left: 10px; }
    .search-input-icon + .search-input { padding-left: 16px; }
    The specific padding can be determined with calc and some variables if necessary.

Leave a Reply