This is a solution to the Launch countdown timer challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See hover states for all interactive elements on the page
- See a live countdown timer that ticks down every second (start the count at 14 days)
- Bonus: When a number changes, make the card flip from the middle
- Solution URL: https://github.com/exenestecnico/fm-launch-countdown/
- Live Site URL: https://exenestecnico.github.io/fm-launch-countdown/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- Web Components
Learned about making custom web components to encapsulate and reuse functionality.
Made a <vertical-flip-card>
component and used it for each count.
<div id="countdown">
<div class="count">
<vertical-flip-card id="days"></vertical-flip-card>
<span>Days</span>
</div>
<div class="count">
<vertical-flip-card id="hours"></vertical-flip-card>
<span>Hours</span>
</div>
<div class="count">
<vertical-flip-card id="minutes"></vertical-flip-card>
<span>Minutes</span>
</div>
<div class="count">
<vertical-flip-card id="seconds"></vertical-flip-card>
<span>Seconds</span>
</div>
</div>
- Web Components - This is a good reference with examples, tutorials, and sample repos.
- Intro to CSS 3D transforms - Nice tutorials about CSS 3D Transforms.
- Frontend Mentor - @evilhaxor