Skip to content

Nicolas-CHRETIEN/exercise-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

responsive pages:

To get a responsive design, I started from the narrowest screen:

home-responsive

To make it look nice I divided the HTML in many elements and I set CSS container's style with a flex display. Then I reduced width of all elements inside. I created a burger menu on the navbar save some place and I modified the carrousel to show only 1 image at a time.

The more screen width increase, the more changes are made with media queries:

home-responsive-2

Here there are now two images showed at a time on the carousel. The navbar doesn't have burger menu, all links are visible. The div are now placed side by side.

If the screen width is even more important you obtain this result:

home

Four images at a time are visible in the carousel and the main width is reduced.

Transitions and animations:

To train myself I created some animations and transitions.

ezgif com-video-to-gif (1)

The carousel:

I created a carousel with an animation to show all the images in 22 seconds. between each image I froze the movement to let the image static for 1 second.

Images in the carousel:

I add a hover to change images scale when the cursor is above. I also changed the opacity to show the text with the image name behind.

The share animation:

I started with a Facebook logo as background and I created an animation to replace it every 2 second with another logo.

About

An exercice: the imitation of a website to learn CSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages