Hello Designer today you will learn how to create a responsive Website with video background using html , css and javascript .


WEBSITE DESIGN VIEW

Full Website Homepage View



Full Website Menu View





 Homepage View When Screen Size 725px





Homepage View When Screen Size is 425px






Menu Homepage View When Screen Size 425px






What is in this design ?

1.Responsive Behaviour .
2.Search Box with Icon inside it .
3.Bar animation ( On click menu open from top to bottom) .
4. Cool hover effect.

Why we use javascript in this ?

Javascript is used to  hide and unhide menu on click Menu bar .

openMenu() function - It is used to make the height of the menu 100% onclick menu bar icon by default we make height of the menu zero.

closeMenu() function -  It is used to make the height of the menu 0%  onclick menu bar icon .


Website show a responsive behaviour when you start decrease the size of the webpage  when the screen size is full that time the width of the content class div is 70% of the full screen  and the margin from the top 25% of the height .The width of the input-search  class is 50% of the div class content . 

when the screen size is725px that time the width of the content class div is 90% of the full screen  and the margin from the top 20% of the height .The width of the input-search  class is 60% of the div class content . 

when the screen size is425px that time the width of the content class div is 90% of the full screen  and the margin from the top 15% of the height .The width of the input-search  class is 100% of the div class content . 

Font 

We are going to use font family Poppins on our homepage design .

Icons

We take all the icons from the FontAwesome.com except website logo .

Video Tutorial




CODE PREVIEW


HTML FILE





CSS FILE





JAVASCRIPT FILE


 


You can follow us on for more coding related knowledge 




Keep Visiting 😁


Post a Comment

Previous Post Next Post