splash page background change with Javascript

 

Features:

resources with css from Figma

change background with Javascript

Code Github

Demo

HTML

logo exported from figma

toggles at the right top of page with onclick event

text container includes title and paragraph,two buttons with links.

all the images exported from figma

CSS

google fonts imported 

all the css data from figma css



toggles buttons display at the right top aligned


three background styles with patterns and gradients.

JAVASCRIPT

changeBackground() pass the style number. 
If the style button is been clicked,the current background class changes.Then if click the button with same class name, the boolean should be false,which means back to original white background. Otherwise, the current background class should change accordingn to number.



Popular posts from this blog

Fancyapps — easily build overlay windows with carousel

Thoughts about Progressive Web App

Meet Mantine: A TS-Based Open-Source React Components Library