Posts

Showing posts with the label CSS

Image Gallery Codepen

HTML Code width JQuery Script <!--<div class="wrapper">   <div class="images">     <img src="https://source.unsplash.com/1600x900/?rainforest" />     <img src="https://source.unsplash.com/1600x900/?trees" />     <img src="https://source.unsplash.com/1600x900/?rocks" />     <img src="https://source.unsplash.com/1600x900/?mountains" />     <img src="https://source.unsplash.com/1600x900/?water" />     <img src="https://source.unsplash.com/1600x900/?nature" />   </div>   <div class="text">     <p>Click the images.</p>   </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script type="text/javascript">   $(".images img").click(function () {   $(this).addClass("zoom"); }); $(".images img").mouseleave...

Display Search on Button Click with Animation

  HTML  <button id="search_button" onclick="search_display()"><i class="fas fa-search"></i></button>        <div id="search"><input type="text" name="search_bar" id="search_bar" placeholder="Search.."><button id="search_button1"><i class="fas fa-search"></i></button></div> CSS #search_button,#search_button1 {   float: right;   width: 4vw;   height: 8vh;   border: none;   background: #fedd02;  }  #search_button:hover,#search_button1:hover {   color: white;  } #search {   display: none;   position: fixed;   top: 6.5vh;   right: 11.8vw;  }  #search_bar {   width: 20vw;   height: 8vh;   background: #000000;   color: #FFFFFF;   animation: 1s fade ease;  }  @keyframes fade {   from {     width: 0;   }   to{     width: 20vw;   } }  #se...

Event Calendar

Event Calendar HTML, CSS and JS

Font Size in rem and Making Responsive

Image
 1 rem = Font-size of the root html element Default 1rem = 16px To change font-size of html element -> Put in %(1rem=100%) And put font-size in media-query -> in % (accordingly)

Testimonial Slider

HTML    <!--   #### EDIT   I built this slider when I first started to learn JS, you can rebuild it with more readable, simple and less code, I'm too lazy to update it, sorry :)   -->   <!--     -->  <!-- <section id="testim" class="testim">           <div class="testim-cover">                <div class="wrap">                   <span id="right-arrow" class="arrow right fa fa-chevron-right"></span>                   <span id="left-arrow" class="arrow left fa fa-chevron-left "></span>                   <ul id="testim-dots" class="dots">                       <li class="dot active"></li>         ...

Flex Box or Flexible Box

Image
Flex-box can be used to align boxes without assigning them width etc. <div class="flex_box">     <div class="flex_one">     </div>     <div class="flex_two">     </div>     <div class="flex_three">     </div> </div> display:flex; flex-direction: row; (Default)                          row-reverse;                          column;                          column-reverse; justify-content: flex-start; (Default)                            flex-end;                            center;                     ...