HOVERJS

create by yousef fatomi
DOWNLOAD
Scss:
.list1{
  .hoverJs_Element {
    background-color: #ba8943;
    transition: all 0.5s;
    height: 3px !important;
    top: 100% !important;
  }
}
 
JavaScript:
 new hoverjs({
    parent  : '.list1',
    children: 'li',
    type    : 'list',
});
                
Scss:
.list2{
  .hoverJs_Element {
    transition: all 0.5s ;
    background-color: transparent;
    &::after,&::before{
      content: '';
      width: 15px;
      height: 15px;
      border: 2px solid #ba8943;
      position: absolute;
      transition: all 0.5s;
    }
    &::after{
      top: 0;
      right: 0;
      border-left: none;
      border-bottom: none;
    }

    &::before{
      bottom: 0;
      left: 0;
      border-right: none;
      border-top: none;
    }
    &.the_parent_leave{
      &::after,&::before{
        width: 100% !important;
        height: 100% !important;
      }
    }

  }
}
 
JavaScript:
 new hoverjs({
    parent  : '.list1',
    children: 'li',
    type    : 'list',
});
                
please click on the item
Scss:
.list3{
  .hoverJs_Element {
    border: 2px solid #ba8943;
    transition: all 0.5s;
    border-radius: 10rem;
    &.the_parent_leave{
      background-color: #ba8943;
    }

  }
}
 
JavaScript:
 new hoverjs({
    parent  : '.list3',
    children: 'li',
    type    : 'tab',
});
                




yousef fatomi front_End Developer