Code Monkey home page Code Monkey logo

100-days-css's Introduction

100 Days CSS (work in progress)

View project

My attempt at recreating some of the 100 Days CSS frames, with additional features.

100 days CSS

Table of contents

Features

  • Responsiveness: These have been made almost 100% responsive, meaning that if you resize the frame width and height, it will be as though you zoomed in / out. The notable exceptions are the frames which contain text, as text can't be sized relative to its container with CSS.

  • Easy changes to each frame: Every frame has several variables which can be changed to affect how the image looks. Some math was used to make this work.

  • Animations pause if the frame is not visible on the screen: This is because slower devices such as mobile were experiencing significant slowdown as more frames were added.

  • Page is pre-rendered.

  • Lazy loading of CSS frames further down the page.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • NPM

Installation requires NPM which is included with Node. You can install Node by downloading the installer from the website.

To update NPM to the latest version:

npm install -g npm@latest

Installation

  1. Clone the repo
git clone https://github.com/sargalias/100-days-css.git
  1. Install NPM packages
npm install

Running the project for development

npm start

Usage

Starting the project

  • Start the project for development: npm start
  • Serve the production build of your site: npm run serve

Building the project

  • Build the project for production: npm run build

Code formatting

  • Format code with Prettier code formatter: npm run format

Built with

  • Gatsby - Static site generator based on React.
  • React - The JavaScript framework used.
  • Prettier - Code formatting
  • react-intersection-visible - Package for easy notification of when a component is visible on-screen.
  • react-lazyload - Package for lazy-loading React components.
  • react-helmet - Document head manager for React.
  • And some others, including Gatsby plugins.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

100-days-css's People

Contributors

sargalias 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.