Skip to content

This is a solution to a Crypto currency website challenge on twitter for September

Notifications You must be signed in to change notification settings

Ifescohub/crypto-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Currency Website Coding Challenge solution

This is a solution to the #coding360challenge crypto currency website coding challenge by @codingossy. This is the September edition of the coding challenge.

Table of contents

Overview

The rules

Candidates should be able to:

  • Have fun, no pressure
  • Make the website responsive
  • Have clean codes
  • Use modern semantic HTML -Use structured and reuseable codes if library is used

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Desktop-first workflow
  • Google Fonts - For Fonts

What I learned

I learnt a lot through this project. I had fun while learning new JavaScript concepts. I was able to use the "getBoundingClientRect().top", "window.innerHeight" and "clientHeight" for the first to add animatimation on scroll

const elementInView = (el, dividend = 1) => {
  const elementTop = el.getBoundingClientRect().top;
 
  return (
    elementTop <=
    (window.innerHeight || document.documentElement.clientHeight) / dividend
  ); 
};

const elementOutofView = (el) => {
  const elementTop = el.getBoundingClientRect().top;

  return (
    elementTop > (window.innerHeight || document.documentElement.clientHeight)
  );
};

Continued development

Still trying to learn how to control the element on scroll even better. I still have a lot to improve on in javascript.

Useful resource

  • webdesign.tutsplus.com/tutori... - This help me a lot while trying to wrap my head around how to use vanilla javascript to create the animation on scroll. It helped to simplify the process

Author

Acknowledgments

A big thanks to Gift @codingossy](https://twitter.com/codingossy) for creating this challenge. It gave a beginner like me the chance to compete with the professionals in this field while giving me basis to improve more.

About

This is a solution to a Crypto currency website challenge on twitter for September

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published