How To Create Fashion Website Using HTML CSS And JavaScript
Learn how to make a Fashion website with Awesome CSS Slider. Easy way to create a Fashion Website in HTML, CSS, and JS. This fashion site has an awesome CSS Slider, which I make by just using HTML and CSS. You will build like this website by watching my video tutorial or by following these steps, which I have given below.
How To Create Fashion Website Using HTML CSS And JavaScript.
- 0.0 - 1.00 min : Intro
- 1.00 - 28.0 min: How to build Fashion Website Using HTML.
In this tutorial, I will teach you how to create a Fashion Website with Awesome CSS Slider. It is easy to make. You will build like this website by watching the tutorial or following the steps which i have given above in the post. You will use this template in your upcoming projects. The source code link available above in the post, Download the rar file, extract the file, and enjoy the design. If you have any questions about this tutorial or you face any problem, contact me.
1) Open any code editor like Notepad++.
2) Create HTML, CSS, And Javascript files and put in your project folder which you create. I recommended you to create separate folders for CSS File And JS File.
3) Link the CSS and JS File With HTML File.
4) Copy the HTML code, which I gave below, and paste in the HTML which you create.
Slider Website Copyright 2020
EN
5) Copy the CSS code, which I gave below, and paste in the CSS which you create.
@charset "utf-8"; /* CSS Document */ body{ margin: 0px; padding: 0px; } a{ text-decoration:none; } ul{ list-style:none; } *{ box-sizing:border-box; } section{ width: 100%; height: 100vh; display:grid; grid-template-rows:45px 1fr 45px; grid-template-columns:45px 1fr 45px; } .top,.left,.right,.bottom{ background-color:#f1f2f4; } .center{ box-shadow:inset 2px 2px 12px rgba(0,0,0,0.03); position: relative; overflow: hidden; } .top,.bottom{ grid-column: span 3; } .top,.left,.right{ display: flex; justify-content: center; align-items: center; } .text-logo{ font-family:bebas kai; font-size: 12px; letter-spacing: 2px; font-weight: 400; color:#2b2b2b; } .logo{ height:25px; } .b-menu { display:flex; } .bottom{ display: flex; align-items: center; justify-content: space-between; padding: 0px 48px; overflow: hidden; } .copyright{ font-family: Ebrima; font-weight: bold; font-size: 10px; color:#949393; } .b-menu li a{ margin:0px 20px; font-family: Ebrima; font-weight: bold; font-size: 8px; color:#464646; } .language{ margin:0px 20px; font-family: Ebrima; font-weight: bold; font-size: 10px; color:#464646; } .fa-bars{ color:#2b2b2b; font-size: 16px; } .buttons{ position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display:flex; justify-content: center; align-items: center; } .btn{ margin:0px 20px; } .btn p{ color: #878586; font-family: calibri; font-weight: bold; font-size: 12px; letter-spacing: 2px; line-height:3px; } .btn p:nth-child(1){ font-size:14px; } .btn-img{ width:160px; height: 30px; background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: 2px 2px 12px rgba(0,0,0,0.2); } .btn h1{ font-family:bebas kai; color:#3a3939; font-size: 12px; letter-spacing: 5px; } .btn-img01{ background-image: url("../images/slide-1.png"); } .btn-img02{ background-image: url("../images/slide-2.png"); } .btn-img03{ background-image: url("../images/slide-3.png"); } .btn-img04{ background-image: url("../images/slide-4.png"); } .slide-im1{ background-image:url("../images/1.png"); } .slide-im2{ background-image:url("../images/2.png"); } .slide-im3{ background-image:url("../images/3.png"); } .slide-im4{ background-image:url("../images/4.png"); } .slide{ width:20%; transition: 0.5s; background-size: cover; background-position: center; background-repeat: no-repeat; } .slider-conatiner{ width:500%; height: 100%; } input[name="r"]{ position: absolute; visibility: hidden; } .slider-conatiner{ display: flex; } #r1:checked ~ .slide1{ margin-left: 0; } #r2:checked ~ .slide1{ margin-left: -20%; } #r3:checked ~ .slide1{ margin-left: -40%; } #r4:checked ~ .slide1{ margin-left: -60%; } .menu{ margin: 0px; padding: 0px; background-color:#EBEEF4; flex-grow: 1; position:absolute; left: -100%; width:100%; height: 100%; box-sizing: border-box; display: flex; justify-content: center; align-items: center; z-index: 1; } .menu ul{ text-align: center; margin: 0px; padding: 0px; } .menu ul li a{ padding: 10px; display: inline-block; font-family: calibri; font-size: 1.3em; text-transform: uppercase; color:#5C5C5C; } .menu ul li a:hover{ color:#2b2b2b; } .toggle { color:#1F1F1F; font-size: 18px; } .toggle:before{ content:'\f0c9'; font-family: fontAwesome; line-height: 30px; } .toggle.active:before{ content:'\f00d'; } .active{ left:auto; }
6) Copy the JS code, which I give you below of this, and paste this code in the CSS which you create.
$(document).ready(function(){ $('.toggle ').click(function(){ $('.toggle').toggleClass('active') $('.menu').toggleClass('active') }) });
7) All Files link, Which I use in the project given below.
The Download Links Will Be Shown in 30 Seconds
This comment has been removed by the author.
ReplyDelete