An open API service indexing awesome lists of open source software.

https://github.com/tasxatzial/intersection-observer-demo


https://github.com/tasxatzial/intersection-observer-demo

intersection-observer

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Intersection observer demo

A simple website that illustrates the application of Intersection and Resize observers.

[Live version](https://tasxatzial.github.io/intersection-observer-demo/src/index.html)

## Implementation

* Responsive.
* Accessible + screen reader friendly.
* Mobile first approach.
* Animations are reduced for users who have turned them off.
* Observers:
* Lazy loading of images.
* Text slides in when user scrolls to the last section.
* Automatic underlining of the navigation link that corresponds to the current visible section.
* Change of the background color of the navigation bar based on the visible section of the page.

## Dependencies

The project is written in HTML, CSS, JavaScript.

The following dependencies require an online connection:

* [:focus-visible](https://github.com/WICG/focus-visible) polyfill.

## Run locally

Download the 'src' folder and open 'index.html' in the browser.

## Screenshots

See [screenshots](screenshots/).