Git Product home page Git Product logo

100-days-of-code's Introduction

I've joined the #100DaysOfCode Challenge

Contents

Day 1: Feb 7, 2019

Implemented a javascript function to animate a given DOM element to right by the given distance smoothly.

Codepen

Notes:

  • It's important to use setTimeout function to send the task out of the main thread i.e. send to EventLoop
  • There is a very good talk about the event loop: https://www.youtube.com/watch?v=8aGhZQkoFbQ
  • Use javascript to manipulate DOM element style

Day 2: Feb 8, 2019

Today I have played around React synthetic event handling and normal DOM event handling, and it turns out the DOM event handling has more priority than the React synthetic event handling!

Codepen Twitter

Notes:

  • Looks like DOM event will go to native event handling first then React component event handling (Still need to find out why)

Day 3: Feb 9, 2019

Use SVG to implement the angle edge.

Codepen Twitter

Notes and references:

Day 4: Feb 10, 2019

Today I have implemented a simple carousel/slider with pure React and CSS (without any other 3rd party libraries than React). Still has some CSS and refactoring to do, will continue on Day 5!

Codepen

Notes and references:

Simple Swipe with Vanilla JavaScript

Day 5: Feb 11, 2019

Today I continued on yesterday's simple carousel/slider with pure React and CSS. Some refactoring, centre the left, right control, made the content of the carousel/slider to be generic, i.e. react.children.

Codepen

Day 6: Feb 12, 2019

Today I continued to improve the simple carousel/slider built with pure React and CSS from day 4 and 5: added event listener to make it slidable with mouse.

Codepen

Day 7: Feb 13, 2019

Today I have added the touch support (for usage in mobile devices) in my simple carousel/slider built with pure React and CSS from day 4 - 6, I have put my source code in my github simple-react-carousel

Notes and references:

Simple Swipe with Vanilla JavaScript

Day 8: Feb 14, 2019

Log all my previous days into github repo: 100-days-of-code and start building my own (blog)[https://github.com/nluo/my-blog] with GatsbyJS

100-days-of-code's People

Contributors

amandeepmittal avatar astuteape avatar aureliebayre avatar billimarie avatar cmasad avatar djshabby avatar eqlz avatar ildoc avatar jashanbansal0708 avatar kallaway avatar kokkonisd avatar kriyeng avatar narshe1412 avatar nluo avatar programazing avatar renatogpires avatar romanrodriguez avatar schlenges avatar sylvainjunca avatar tigerror avatar vicmeow avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.