HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Food Website</title>
<!-- for icons -->
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css">
<!-- bootstrap -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!-- for swiper slider -->
<link rel="stylesheet" href="assets/css/swiper-bundle.min.css">
<!-- fancy box -->
<link rel="stylesheet" href="assets/css/jquery.fancybox.min.css">
<!-- custom css -->
<link rel="stylesheet" href="style.css">
</head>
<body class="body-fixed">
<!-- start of header -->
<header class="site-header">
<div class="container">
<div class="row">
<div class="col-lg-2">
<div class="header-logo">
<a href="index.html">
<img src="logo.png" width="160" height="36" alt="Logo">
</a>
</div>
</div>
<div class="col-lg-10">
<div class="main-navigation">
<button class="menu-toggle"><span></span><span></span></button>
<nav class="header-menu">
<ul class="menu food-nav-menu">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#gallery">Gallery</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<div class="header-right">
<form action="#" class="header-search-form for-des">
<input type="search" class="form-input" placeholder="Search Here...">
<button type="submit">
<i class="uil uil-search"></i>
</button>
</form>
<a href="javascript:void(0)" class="header-btn header-cart">
<i class="uil uil-shopping-bag"></i>
<span class="cart-number">3</span>
</a>
<a href="javascript:void(0)" class="header-btn">
<i class="uil uil-user-md"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- header ends -->
<div id="viewport">
<div id="js-scroll-content">
<section class="main-banner" id="home">
<div class="js-parallax-scene">
<div class="banner-shape-1 w-100" data-depth="0.30">
<img src="assets/images/berry.png" alt="">
</div>
<div class="banner-shape-2 w-100" data-depth="0.25">
<img src="assets/images/leaf.png" alt="">
</div>
</div>
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="banner-text">
<h1 class="h1-title">
Welcome to our
<span>India</span>
restaurant.
</h1>
<p>This is Lorem ipsum dolor sit amet, consectetur adipisicing elit. Numquam eius
vel tempore consectetur nesciunt? Nam eius tenetur recusandae optio aperiam.</p>
<div class="banner-btn mt-4">
<a href="#menu" class="sec-btn">Check our Menu</a>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="banner-img-wp">
<div class="banner-img" style="background-image: url(assets/images/main-b.jpg);">
</div>
</div>
<div class="banner-img-text mt-4 m-auto">
<h5 class="h5-title">Sushi</h5>
<p>this is Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="brands-sec">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="brand-title mb-5">
<h5 class="h5-title">Trusted by 70+ companies</h5>
</div>
<div class="brands-row">
<div class="brands-box">
<img src="assets/images/brands/b1.png" alt="">
</div>
<div class="brands-box">
<img src="assets/images/brands/b2.png" alt="">
</div>
<div class="brands-box">
<img src="assets/images/brands/b3.png" alt="">
</div>
<div class="brands-box">
<img src="assets/images/brands/b4.png" alt="">
</div>
<div class="brands-box">
<img src="assets/images/brands/b5.png" alt="">
</div>
</div>
</div>
</div>
</div>
</section>
<section class="about-sec section" id="about">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="sec-title text-center mb-5">
<p class="sec-sub-title mb-3">About Us</p>
<h2 class="h2-title">Discover our <span>restaurant story</span></h2>
<div class="sec-title-shape mb-4">
<img src="assets/images/title-shape.svg" alt="">
</div>
<p>This is Lorem ipsum dolor sit amet consectetur adipisicing elit. Saepe dolore at
aspernatur eveniet temporibus placeat voluptatum quaerat accusamus possimus
cupiditate, quidem impedit sed libero id perspiciatis esse earum repellat quam.
Dolore modi temporibus quae possimus accusantium, cum corrupti sed deserunt iusto at
sapiente nihil sint iste similique soluta dolor! Quod.</p>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-8 m-auto">
<div class="about-video">
<div class="about-video-img" style="background-image: url(assets/images/about.jpg);">
</div>
<div class="play-btn-wp">
<a href="assets/images/video.mp4" data-fancybox="video" class="play-btn">
<i class="uil uil-play"></i>
</a>
<span>Watch The Recipe</span>
</div>
</div>
</div>
</div>
</div>
</section>
<section style="background-image: url(assets/images/menu-bg.png);"
class="our-menu section bg-light repeat-img" id="menu">
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="sec-title text-center mb-5">
<p class="sec-sub-title mb-3">our menu</p>
<h2 class="h2-title">wake up early, <span>eat fresh & healthy</span></h2>
<div class="sec-title-shape mb-4">
<img src="assets/images/title-shape.svg" alt="">
</div>
</div>
</div>
</div>
<div class="menu-tab-wp">
<div class="row">
<div class="col-lg-12 m-auto">
<div class="menu-tab text-center">
<ul class="filters">
<div class="filter-active"></div>
<li class="filter" data-filter=".all, .breakfast, .lunch, .dinner">
<img src="assets/images/menu-1.png" alt="">
All
</li>
<li class="filter" data-filter=".breakfast">
<img src="assets/images/menu-2.png" alt="">
Breakfast
</li>
<li class="filter" data-filter=".lunch">
<img src="assets/images/menu-3.png" alt="">
Lunch
</li>
<li class="filter" data-filter=".dinner">
<img src="assets/images/menu-4.png" alt="">
Dinner
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="menu-list-row">
<div class="row g-xxl-5 bydefault_show" id="menu-dish">
<div class="col-lg-4 col-sm-6 dish-box-wp breakfast" data-cat="breakfast">
<div class="dish-box text-center">
<div class="dist-img">
<img src="assets/images/dish/1.png" alt="">
</div>
<div class="dish-rating">
5
<i class="uil uil-star"></i>
</div>
<div class="dish-title">
<h3 class="h3-title">Fresh Chicken Veggies</h3>
<p>120 calories</p>
</div>
<div class="dish-info">
<ul>
<li>
<p>Type</p>
<b>Non Veg</b>
</li>
<li>
<p>Persons</p>
<b>2</b>
</li>
</ul>
</div>
<div class="dist-bottom-row">
<ul>
<li>
<b>Rs. 499</b>
</li>
<li>
<button class="dish-add-btn">
<i class="uil uil-plus"></i>
</button>
</li>
</ul>
</div>
</div>
</div>
<!-- 2 -->
<div class="col-lg-4 col-sm-6 dish-box-wp breakfast" data-cat="breakfast">
<div class="dish-box text-center">
<div class="dist-img">
<img src="assets/images/dish/2.png" alt="">
</div>
<div class="dish-rating">
4.3
<i class="uil uil-star"></i>
</div>
<div class="dish-title">
<h3 class="h3-title">Grilled Chicken</h3>
<p>80 calories</p>
</div>
<div class="dish-info">
<ul>
<li>
<p>Type</p>
<b>Non Veg</b>
</li>
<li>
<p>Persons</p>
<b>1</b>
</li>
</ul>
</div>
<div class="dist-bottom-row">
<ul>
<li>
<b>Rs. 359</b>
</li>
<li>
<button class="dish-add-btn">
<i class="uil uil-plus"></i>
</button>
</li>
</ul>
</div>
</div>
</div>
<!-- 3 -->
<div class="col-lg-4 col-sm-6 dish-box-wp lunch" data-cat="lunch">
<div class="dish-box text-center">
<div class="dist-img">
<img src="assets/images/dish/3.png" alt="">
</div>
<div class="dish-rating">
4
<i class="uil uil-star"></i>
</div>
<div class="dish-title">
<h3 class="h3-title">Panner Noodles</h3>
<p>100 calories</p>
</div>
<div class="dish-info">
<ul>
<li>
<p>Type</p>
<b>Veg</b>
</li>
<li>
<p>Persons</p>
<b>2</b>
</li>
</ul>
</div>
<div class="dist-bottom-row">
<ul>
<li>
<b>Rs. 149</b>
</li>
<li>
<button class="dish-add-btn">
<i class="uil uil-plus"></i>
</button>
</li>
</ul>
</div>
</div>
</div>
<!-- 4 -->
<div class="col-lg-4 col-sm-6 dish-box-wp lunch" data-cat="lunch">
<div class="dish-box text-center">
<div class="dist-img">
<img src="assets/images/dish/4.png" alt="">
</div>
<div class="dish-rating">
4.5
<i class="uil uil-star"></i>
</div>
<div class="dish-title">
<h3 class="h3-title">Chicken Noodles</h3>
<p>120 calories</p>
</div>
<div class="dish-info">
<ul>
<li>
<p>Type</p>
<b>Non Veg</b>
</li>
<li>
<p>Persons</p>
<b>2</b>
</li>
</ul>
</div>
<div class="dist-bottom-row">
<ul>
<li>
<b>Rs. 379</b>
</li>
<li>
<button class="dish-add-btn">
<i class="uil uil-plus"></i>
</button>
</li>
</ul>
</div>
</div>
</div>
<!-- 5 -->
<div class="col-lg-4 col-sm-6 dish-box-wp dinner" data-cat="dinner">
<div class="dish-box text-center">
<div class="dist-img">
<img src="assets/images/dish/5.png" alt="">
</div>
<div class="dish-rating">
5
<i class="uil uil-star"></i>
</div>
<div class="dish-title">
<h3 class="h3-title">Bread Boiled Egg</h3>
<p>120 calories</p>
</div>
<div class="dish-info">
<ul>
<li>
<p>Type</p>
<b>Non Veg</b>
</li>
<li>
<p>Persons</p>
<b>2</b>
</li>
</ul>
</div>
<div class="dist-bottom-row">
<ul>
<li>
<b>Rs. 99</b>
</li>
<li>
<button class="dish-add-btn">
<i class="uil uil-plus"></i>
</button>
</li>
</ul>
</div>
</div>
</div>
<!-- 6 -->
<div class="col-lg-4 col-sm-6 dish-box-wp dinner" data-cat="dinner">
<div class="dish-box text-center">
<div class="dist-img">
<img src="assets/images/dish/6.png" alt="">
</div>
<div class="dish-rating">
5
<i class="uil uil-star"></i>
</div>
<div class="dish-title">
<h3 class="h3-title">Immunity Dish</h3>
<p>120 calories</p>
</div>
<div class="dish-info">
<ul>
<li>
<p>Type</p>
<b>Veg</b>
</li>
<li>
<p>Persons</p>
<b>2</b>
</li>
</ul>
</div>
<div class="dist-bottom-row">
<ul>
<li>
<b>Rs. 159</b>
</li>
<li>
<button class="dish-add-btn">
<i class="uil uil-plus"></i>
</button>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="two-col-sec section">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-5">
<div class="sec-img mt-5">
<img src="assets/images/pizza.png" alt="">
</div>
</div>
<div class="col-lg-7">
<div class="sec-text">
<h2 class="xxl-title">Chicken Pepperoni</h2>
<p>This is Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet dolores
eligendi earum eveniet soluta officiis asperiores repellat, eum praesentium nihil
totam. Non ipsa expedita repellat atque mollitia praesentium assumenda quo
distinctio excepturi nobis tenetur, cum ab vitae fugiat hic aspernatur? Quos
laboriosam, repudiandae exercitationem atque a excepturi vel. Voluptas, ipsa.</p>
<p>This is Lorem ipsum dolor sit amet consectetur adipisicing elit. At fugit laborum
voluptas magnam sed ad illum? Minus officiis quod deserunt.</p>
</div>
</div>
</div>
</div>
</section>
<section class="two-col-sec section pt-0">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-6 order-lg-1 order-2">
<div class="sec-text">
<h2 class="xxl-title">Chicken Pepperoni</h2>
<p>This is Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet dolores
eligendi earum eveniet soluta officiis asperiores repellat, eum praesentium nihil
totam. Non ipsa expedita repellat atque mollitia praesentium assumenda quo
distinctio excepturi nobis tenetur, cum ab vitae fugiat hic aspernatur? Quos
laboriosam, repudiandae exercitationem atque a excepturi vel. Voluptas, ipsa.</p>
<p>This is Lorem ipsum dolor sit amet consectetur adipisicing elit. At fugit laborum
voluptas magnam sed ad illum? Minus officiis quod deserunt.</p>
</div>
</div>
<div class="col-lg-6 order-lg-2 order-1">
<div class="sec-img">
<img src="assets/images/sushi.png" alt="">
</div>
</div>
</div>
</div>
</section>
<section class="book-table section bg-light">
<div class="book-table-shape">
<img src="assets/images/table-leaves-shape.png" alt="">
</div>
<div class="book-table-shape book-table-shape2">
<img src="assets/images/table-leaves-shape.png" alt="">
</div>
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="sec-title text-center mb-5">
<p class="sec-sub-title mb-3">Book Table</p>
<h2 class="h2-title">Opening Table</h2>
<div class="sec-title-shape mb-4">
<img src="assets/images/title-shape.svg" alt="">
</div>
</div>
</div>
</div>
<div class="book-table-info">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="table-title text-center">
<h3>Monday to Thrusday</h3>
<p>9:00 am - 22:00 pm</p>
</div>
</div>
<div class="col-lg-4">
<div class="call-now text-center">
<i class="uil uil-phone"></i>
<a href="tel:+91-8866998866">+91 - 8866998866</a>
</div>
</div>
<div class="col-lg-4">
<div class="table-title text-center">
<h3>Friday to Sunday</h3>
<p>11::00 am to 20:00 pm</p>
</div>
</div>
</div>
</div>
<div class="row" id="gallery">
<div class="col-lg-10 m-auto">
<div class="book-table-img-slider" id="icon">
<div class="swiper-wrapper">
<a href="assets/images/bt1.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt1.jpg)"></a>
<a href="assets/images/bt2.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt2.jpg)"></a>
<a href="assets/images/bt3.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt3.jpg)"></a>
<a href="assets/images/bt4.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt4.jpg)"></a>
<a href="assets/images/bt1.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt1.jpg)"></a>
<a href="assets/images/bt2.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt2.jpg)"></a>
<a href="assets/images/bt3.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt3.jpg)"></a>
<a href="assets/images/bt4.jpg" data-fancybox="table-slider"
class="book-table-img back-img swiper-slide"
style="background-image: url(assets/images/bt4.jpg)"></a>
</div>
<div class="swiper-button-wp">
<div class="swiper-button-prev swiper-button">
<i class="uil uil-angle-left"></i>
</div>
<div class="swiper-button-next swiper-button">
<i class="uil uil-angle-right"></i>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="our-team section">
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="sec-title text-center mb-5">
<p class="sec-sub-title mb-3">Our Team</p>
<h2 class="h2-title">Meet our Chefs</h2>
<div class="sec-title-shape mb-4">
<img src="assets/images/title-shape.svg" alt="">
</div>
</div>
</div>
</div>
<div class="row team-slider">
<div class="swiper-wrapper">
<div class="col-lg-4 swiper-slide">
<div class="team-box text-center">
<div style="background-image: url(assets/images/chef/c1.jpg);"
class="team-img back-img">
</div>
<h3 class="h3-title">Nilay Hirpara</h3>
<div class="social-icon">
<ul>
<li>
<a href="#"><i class="uil uil-facebook-f"></i></a>
</li>
<li>
<a href="#">
<i class="uil uil-instagram"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-youtube"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4 swiper-slide">
<div class="team-box text-center">
<div style="background-image: url(assets/images/chef/c2.jpg);"
class="team-img back-img">
</div>
<h3 class="h3-title">Ravi Kumawat</h3>
<div class="social-icon">
<ul>
<li>
<a href="#"><i class="uil uil-facebook-f"></i></a>
</li>
<li>
<a href="#">
<i class="uil uil-instagram"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-youtube"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4 swiper-slide">
<div class="team-box text-center">
<div style="background-image: url(assets/images/chef/c3.jpg);"
class="team-img back-img">
</div>
<h3 class="h3-title">Navnit Kumar</h3>
<div class="social-icon">
<ul>
<li>
<a href="#"><i class="uil uil-facebook-f"></i></a>
</li>
<li>
<a href="#">
<i class="uil uil-instagram"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-youtube"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4 swiper-slide">
<div class="team-box text-center">
<div style="background-image: url(assets/images/chef/c4.jpg);"
class="team-img back-img">
</div>
<h3 class="h3-title">Pranav Badgal</h3>
<div class="social-icon">
<ul>
<li>
<a href="#"><i class="uil uil-facebook-f"></i></a>
</li>
<li>
<a href="#">
<i class="uil uil-instagram"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-youtube"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4 swiper-slide">
<div class="team-box text-center">
<div style="background-image: url(assets/images/chef/c5.jpg);"
class="team-img back-img">
</div>
<h3 class="h3-title">Priyotosh Dey</h3>
<div class="social-icon">
<ul>
<li>
<a href="#"><i class="uil uil-facebook-f"></i></a>
</li>
<li>
<a href="#">
<i class="uil uil-instagram"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-youtube"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="swiper-button-wp">
<div class="swiper-button-prev swiper-button">
<i class="uil uil-angle-left"></i>
</div>
<div class="swiper-button-next swiper-button">
<i class="uil uil-angle-right"></i>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
</div>
</section>
<section class="testimonials section bg-light">
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="sec-title text-center mb-5">
<p class="sec-sub-title mb-3">What they say</p>
<h2 class="h2-title">What our customers <span>say about us</span></h2>
<div class="sec-title-shape mb-4">
<img src="assets/images/title-shape.svg" alt="">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-5">
<div class="testimonials-img">
<img src="assets/images/testimonial-img.png" alt="">
</div>
</div>
<div class="col-lg-7">
<div class="row">
<div class="col-sm-6">
<div class="testimonials-box">
<div class="testimonial-box-top">
<div class="testimonials-box-img back-img"
style="background-image: url(assets/images/testimonials/t1.jpg);">
</div>
<div class="star-rating-wp">
<div class="star-rating">
<span class="star-rating__fill" style="width:85%"></span>
</div>
</div>
</div>
<div class="testimonials-box-text">
<h3 class="h3-title">
Nilay Hirpara
</h3>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Itaque,
quisquam.</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="testimonials-box">
<div class="testimonial-box-top">
<div class="testimonials-box-img back-img"
style="background-image: url(assets/images/testimonials/t2.jpg);">
</div>
<div class="star-rating-wp">
<div class="star-rating">
<span class="star-rating__fill" style="width:80%"></span>
</div>
</div>
</div>
<div class="testimonials-box-text">
<h3 class="h3-title">
Ravi Kumawat
</h3>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Itaque,
quisquam.</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="testimonials-box">
<div class="testimonial-box-top">
<div class="testimonials-box-img back-img"
style="background-image: url(assets/images/testimonials/t3.jpg);">
</div>
<div class="star-rating-wp">
<div class="star-rating">
<span class="star-rating__fill" style="width:89%"></span>
</div>
</div>
</div>
<div class="testimonials-box-text">
<h3 class="h3-title">
Navnit Kumar
</h3>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Itaque,
quisquam.</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="testimonials-box">
<div class="testimonial-box-top">
<div class="testimonials-box-img back-img"
style="background-image: url(assets/images/testimonials/t4.jpg);">
</div>
<div class="star-rating-wp">
<div class="star-rating">
<span class="star-rating__fill" style="width:100%"></span>
</div>
</div>
</div>
<div class="testimonials-box-text">
<h3 class="h3-title">
Somyadeep Bhowmik
</h3>
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Itaque,
quisquam.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="faq-sec section-repeat-img" style="background-image: url(assets/images/faq-bg.png);">
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="sec-title text-center mb-5">
<p class="sec-sub-title mb-3">faqs</p>
<h2 class="h2-title">Frequently <span>asked questions</span></h2>
<div class="sec-title-shape mb-4">
<img src="assets/images/title-shape.svg" alt="">
</div>
</div>
</div>
</div>
<div class="faq-row">
<div class="faq-box">
<h4 class="h4-title">What are the login hours?</h4>
<p>It is Lorem ipsum dolor, sit amet consectetur adipisicing elit. Temporibus ipsum
vitae fugit laboriosam dolor distinctio.</p>
</div>
<div class="faq-box">
<h4 class="h4-title">What do i get my refund?</h4>
<p>It is Lorem ipsum dolor, sit amet consectetur adipisicing elit. Temporibus ipsum
vitae fugit laboriosam dolor distinctio. Lorem ipsum dolor sit amet.</p>
</div>
<div class="faq-box">
<h4 class="h4-title">How long it will take food to arrive?</h4>
<p>It is Lorem ipsum dolor, sit amet consectetur adipisicing elit. Temporibus ipsum
vitae fugit laboriosam dolor distinctio.</p>
</div>
<div class="faq-box">
<h4 class="h4-title">Does your restaurant has both veg and non veg?</h4>
<p>It is Lorem ipsum dolor, sit amet consectetur adipisicing elit. Temporibus ipsum
vitae fugit laboriosam dolor distinctio. Lorem ipsum, dolor sit amet consectetur
adipisicing elit. Voluptates, distinctio?</p>
</div>
<div class="faq-box">
<h4 class="h4-title">What is cost of food delivery?</h4>
<p>It is Lorem ipsum dolor, sit amet consectetur adipisicing elit. Temporibus ipsum
vitae fugit laboriosam dolor distinctio. Lorem ipsum dolor sit amet consectetur,
adipisicing elit. Nam officiis ducimus, cum enim repudiandae animi.</p>
</div>
<div class="faq-box">
<h4 class="h4-title">Who is eligible for pro membership?</h4>
<p>It is Lorem ipsum dolor, sit amet consectetur adipisicing elit. Temporibus ipsum
vitae fugit laboriosam dolor distinctio. </p>
</div>
</div>
</div>
</div>
</section>
<div class="bg-pattern bg-light repeat-img"
style="background-image: url(assets/images/blog-pattern-bg.png);">
<section class="blog-sec section" id="blog">
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="sec-title text-center mb-5">
<p class="sec-sub-title mb-3">Our blog</p>
<h2 class="h2-title">Latest Publications</span></h2>
<div class="sec-title-shape mb-4">
<img src="assets/images/title-shape.svg" alt="">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="blog-box">
<div class="blog-img back-img"
style="background-image: url(assets/images/blog/blog1.jpg);"></div>
<div class="blog-text">
<p class="blog-date">September.15.2021</p>
<a href="#" class="h4-title">Energy Drink which you can make at home.</a>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Pariatur ipsa
explicabo atque reprehenderit beatae! Accusantium soluta consequuntur
blanditiis amet ad.</p>
<a href="#" class="sec-btn">Read More</a>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="blog-box">
<div class="blog-img back-img"
style="background-image: url(assets/images/blog/blog2.jpg);"></div>
<div class="blog-text">
<p class="blog-date">October.15.2021</p>
<a href="#" class="h4-title">Fresh Veggie and rice combo for dinner.</a>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Pariatur ipsa
explicabo atque reprehenderit beatae! Accusantium soluta consequuntur
blanditiis amet ad.</p>
<a href="#" class="sec-btn">Read More</a>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="blog-box">
<div class="blog-img back-img"
style="background-image: url(assets/images/blog/blog3.jpg);"></div>
<div class="blog-text">
<p class="blog-date">November.15.2021</p>
<a href="#" class="h4-title">Chicken burger with double nuggets</a>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Pariatur ipsa
explicabo atque reprehenderit beatae! Accusantium soluta consequuntur
blanditiis amet ad.</p>
<a href="#" class="sec-btn">Read More</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="newsletter-sec section pt-0">
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-8 m-auto">
<div class="newsletter-box text-center back-img white-text"
style="background-image: url(assets/images/news.jpg);">
<div class="bg-overlay dark-overlay"></div>
<div class="sec-wp">
<div class="newsletter-box-text">
<h2 class="h2-title">Subscribe our newsletter</h2>
<p>This is Lorem ipsum dolor sit amet consectetur adipisicing elit ad
veritatis.</p>
</div>
<form action="#" class="newsletter-form">
<input type="email" class="form-input"
placeholder="Enter your Email Here" required>
<button type="submit" class="sec-btn primary-btn">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- footer starts -->
<footer class="site-footer" id="contact">
<div class="top-footer section">
<div class="sec-wp">
<div class="container">
<div class="row">
<div class="col-lg-4">
<div class="footer-info">
<div class="footer-logo">
<a href="index.html">
<img src="logo.png" alt="">
</a>
</div>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Mollitia, tenetur.
</p>
<div class="social-icon">
<ul>
<li>
<a href="#">
<i class="uil uil-facebook-f"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-instagram"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-github-alt"></i>
</a>
</li>
<li>
<a href="#">
<i class="uil uil-youtube"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="footer-flex-box">
<div class="footer-table-info">
<h3 class="h3-title">open hours</h3>
<ul>
<li><i class="uil uil-clock"></i> Mon-Thurs : 9am - 22pm</li>
<li><i class="uil uil-clock"></i> Fri-Sun : 11am - 22pm</li>
</ul>
</div>
<div class="footer-menu food-nav-menu">
<h3 class="h3-title">Links</h3>
<ul class="column-2">
<li>
<a href="#home" class="footer-active-menu">Home</a>
</li>
<li><a href="#about">About</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#gallery">Gallery</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
<div class="footer-menu">
<h3 class="h3-title">Company</h3>
<ul>
<li><a href="#">Terms & Conditions</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Cookie Policy</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bottom-footer">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<div class="copyright-text">
<p>Copyright © 2021 <span class="name">TechieCoder.</span>All Rights Reserved.
</p>
</div>
</div>
</div>
<button class="scrolltop"><i class="uil uil-angle-up"></i></button>
</div>
</div>
</footer>
</div>
</div>
<!-- jquery -->
<script src="assets/js/jquery-3.5.1.min.js"></script>
<!-- bootstrap -->
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<!-- fontawesome -->
<script src="assets/js/font-awesome.min.js"></script>
<!-- swiper slider -->
<script src="assets/js/swiper-bundle.min.js"></script>
<!-- mixitup -- filter -->
<script src="assets/js/jquery.mixitup.min.js"></script>
<!-- fancy box -->
<script src="assets/js/jquery.fancybox.min.js"></script>
<!-- parallax -->
<script src="assets/js/parallax.min.js"></script>
<!-- gsap -->
<script src="assets/js/gsap.min.js"></script>
<!-- scroll trigger -->
<script src="assets/js/ScrollTrigger.min.js"></script>
<!-- scroll to plugin -->
<script src="assets/js/ScrollToPlugin.min.js"></script>
<!-- rellax -->
<!-- <script src="assets/js/rellax.min.js"></script> -->
<!-- <script src="assets/js/rellax-custom.js"></script> -->
<!-- smooth scroll -->
<script src="assets/js/smooth-scroll.js"></script>
<!-- custom js -->
<script src="main.js"></script>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
/* font-family: 'Playfair Display', serif;
font-family: 'Poppins', sans-serif; */
body {
font-family: 'Poppins', sans-serif;
text-rendering: optimizeLegibility !important;
background: #f3f3f5;
}
.body-fixed {
position: fixed;
width: 100%;
height: 100vh;
top: auto;
left: auto;
}
body, html {
overflow-x: hidden;
}
img {
max-width: 100%;
}
.site-header {
position: fixed;
padding: 30px 0;
display: flex;
align-items: center;
top: 0;
left: 0;
width: 100%;
z-index: 99;
transition: 0.5s;
border-bottom: 1px solid transparent;
}
.site-header.sticky_head {
background: rgb(255 255 255 / 80%);
padding: 20px 0;
border-color: #f2f2f2;
backdrop-filter: blur(20px);
}
.main-navigation {
display: flex;
width: 100%;
height: 100%;
justify-content: flex-end;
align-items: center;
}
.main-navigation .menu li {
display: inline-block;
position: relative;
margin: 0 6px;
}
.main-navigation .menu li:first-child {
margin-left: 0;
}
.main-navigation .menu li:last-child {
margin-right: 0;
}
.main-navigation .menu li:hover>ul, .main-navigation .menu li.focus>ul {
opacity: 1;
margin-top: 6px;
visibility: visible;
}
a {
background-color: transparent;
text-decoration: none !important;
outline: none !important;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
.main-navigation .menu ul a {
width: 200px;
}
.main-navigation .menu li:hover>ul, .main-navigation .menu li.focus>ul {
left: auto;
}
.main-navigation .menu li a {
display: flex;
transition: 0.3s;
position: relative;
justify-content: center;
align-items: center;
color: #0d0d25;
text-transform: capitalize;
font-weight: 500;
padding: 5px 18px;
border-radius: 30px;
}
.main-navigation .menu li a:hover, .main-navigation .menu li .active-menu, .main-navigation .menu .sub-menu li .active-sub-menu {
color: #ff8243;
background: #f3f3f5;
box-shadow: inset 8px 8px 12px #e2e2e2, inset -8px -8px 12px #ffffff;
}
.header-right {
margin-left: 40px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.header-btn {
width: 40px;
height: 40px;
display: inline-flex;
justify-content: center;
border-radius: 10px;
position: relative;
margin-left: 20px;
transition: 0.3s;
box-shadow: inset 6px 6px 7px #dadada, inset -6px -6px 7px #ffffff;
align-items: center;
}
.cart-number {
position: absolute;
top: -10px;
right: -10px;
width: 22px;
height: 22px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background: #ffffff;
font-size: 12px;
border: 1px solid #bfbfbf;
color: #ff8243;
}
.header-btn:hover {
background: linear-gradient(145deg, #dcdcdc, #ffffff);
box-shadow: 20px 20px 60px #cfcfd0, -20px -20px 60px #ffffff;
}
.header-search-form {
position: relative;
}
.for-des {
display: block !important;
}
.header-search-form button {
background: transparent;
border: none;
padding: 0;
position: absolute;
right: 0;
top: 50%;
transform: translate(0, -50%);
width: 48px;
height: 100%;
opacity: 0.5;
}
.header-search-form .form-input {
font-size: 14px;
padding-right: 40px;
width: 200px;
height: 40px;
}
.form-input::placeholder {
color: rgba(70 69 71 / 0.7);
}
.form-input {
width: 100%;
height: 50px;
outline: none !important;
padding: 10px 15px;
color: #0d0d25;
-webkit-appearance: none;
border-radius: 10px;
border: none;
background: #f8f8f8;
box-shadow: inset 6px 6px 8px #dadada, inset -6px -6px 8px #ffffff;
}
* {
-webkit-tap-highlight-color: transparent;
}
.uil {
color: #ff8243;
}
@media screen and (min-width: 992px) {
.menu-toggle {
display: none;
}
}
@media (min-width: 1500px) {
.container {
max-width: 1368px;
}
}
@media (min-width: 2100px) {
.container {
max-width: 1400px;
}
p, body, button, input {
font-size: 18px;
line-height: 32px;
}
}
@media (max-width: 1399px) {
.header-right {
margin-left: 20px;
}
.main-navigation .menu li {
margin: 0 3px;
}
}
@media (max-width: 1199px) {
.header-btn {
margin-left: 10px;
}
.header-right {
margin-left: 10px;
}
.main-navigation .menu li {
margin: 0;
}
.main-navigation .menu li a {
padding: 4px 15px;
font-size: 15px;
}
.header-search-form .form-input {
width: 170px;
}
}
@media (max-width: 991px) {
.section {
padding-top: 85px;
padding-bottom: 85px;
}
.for-des {
display: none !important;
}
.for-mob {
display: block !important;
}
.site-header .container {
max-width: 100%;
padding: 0;
height: 100%;
}
.site-header .container .row {
margin: 0;
height: 100%;
}
.site-header .container .row .col-lg-2 {
width: auto;
padding: 0;
height: 100%;
position: absolute;
top: 0;
left: 30px;
z-index: 2;
display: flex;
align-items: center;
}
.menu-toggle {
position: absolute;
top: 50%;
right: 30px;
border: none;
outline: none !important;
background: transparent;
width: 40px;
height: 40px;
transform: translate(0, -50%);
z-index: 100;
box-shadow: inset 6px 6px 7px #dadada, -6px -6px 10px #ffffff;
border-radius: 10px;
padding: 0 8px;
}
.menu-toggle span {
display: block;
width: 100%;
height: 4px;
background: #ff8243;
margin-bottom: 5px;
transition: 0.3s;
border-radius: 5px;
position: relative;
}
.menu-toggle span:last-child {
margin: 0;
}
.toggled .menu-toggle span:nth-child(1) {
transform: rotate(45deg);
top: 5px;
}
.toggled .menu-toggle span:nth-child(2) {
transform: rotate(-45deg);
top: -4px;
}
.toggled .menu-toggle span:nth-child(3) {
opacity: 0;
height: 0;
}
.toggled .header-menu {
transform: translateY(0);
}
.header-menu {
height: 100vh;
position: absolute;
top: 0;
left: 0;
width: 100%;
padding-top: max(9vh, 30px);
padding-left: max(6vh, 30px);
z-index: 99;
transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
overflow-y: auto;
transform: translateY(-100%);
background-image: url(assets/images/blog-pattern-bg.png);
background-position: center;
background-color: #f3f3f5;
}
.main-navigation .menu li {
display: block;
float: none;
margin: 0;
margin-bottom: max(20px, 4vh);
}
.main-navigation .menu li a {
display: inline-block;
font-size: max(16px, 2vh);
}
.main-navigation .menu .sub-menu {
max-width: 220px;
opacity: 1;
visibility: visible;
display: none;
}
.main-navigation .menu .sub-menu li {
margin-bottom: 5px;
}
.main-navigation .menu li:last-child {
margin: 0;
}
.main-navigation .menu .sub-menu li a {
color: #ff8243;
}
.header-btn.header-cart {
display: none;
}
.header-btn {
margin: 0;
margin-right: 70px;
}
.site-header {
padding: 20px 0;
box-shadow: 0px 10px 55px #d4d4d4;
}
.site-header.sticky_head, .site-header {
background: rgb(255 255 255 / 90%);
}
body {
height: auto !important;
}
}
@media (max-width: 575px) {
.container, .container-fluid {
padding: 0 30px;
}
}
@media (max-width: 400px) {
.container, .container-fluid {
padding: 0 15px;
}
.header-btn {
margin-right: 56px;
}
.menu-toggle {
right: 15px;
}
.site-header .container .row .col-lg-2 {
left: 15px;
}
}
/* ************************** */
@media screen and (min-width: 992px) {
#viewport {
overflow: hidden;
position: fixed;
height: 100%;
width: 100%;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
#js-scroll-content {
position: absolute;
overflow: hidden;
width: 100%;
top: 0;
left: 0;
}
}
@media (max-width: 991px) {
#js-scroll-content {
transform: unset !important;
}
}
.main-banner {
padding: 200px 0 300px;
min-height: 100vh;
position: relative;
}
.js-parallax-scene {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.banner-img-wp {
width: 100%;
height: 100%;
padding-left: 30px;
}
.banner-img {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
animation: biani 4.5s linear infinite alternate;
box-shadow: 0 0px 20px rgba(36, 39, 37, 0.3);
}
@keyframes biani {
0% {
border-radius: 48% 52% 57% 43% / 34% 44% 56% 66%;
}
25% {
border-radius: 62% 38% 64% 36% / 34% 55% 45% 66%;
}
50% {
border-radius: 43% 57% 51% 49% / 33% 42% 58% 67%;
}
100% {
border-radius: 40% 60% 43% 57% / 52% 32% 68% 48%;
}
}
.banner-img-text .h5-title {
text-transform: capitalize;
letter-spacing: 0.5px;
}
.banner-img-text {
max-width: 400px;
}
.banner-shape-1 img {
position: absolute;
left: 85%;
top: 60px;
max-width: 150px;
pointer-events: none;
filter: blur(3px);
}
.banner-shape-2 {
top: auto !important;
bottom: 0;
}
.banner-shape-2 img {
position: absolute;
bottom: 0;
right: 82% !important;
max-width: 410px;
pointer-events: none;
filter: blur(3px);
}
.sec-wp {
position: relative;
z-index: 4;
}
.h1-title {
font-size: 90px;
line-height: 108px;
text-transform: capitalize;
margin-bottom: 25px;
font-weight: 900;
}
.h1-title span {
color: #ff8243;
background-image: linear-gradient(0deg, rgb(13 13 37 /8%), rgb(13 13 37 /8%));
background-size: 100% 15px;
background-position: 0 90%;
background-repeat: no-repeat;
display: inline;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
}
h1, h2, h3, h4, h5, h6 {
color: #0d0d25;
font-family: 'Playfair Display', serif;
font-weight: 900;
}
p {
font-size: 16px;
line-height: 30px;
}
.sec-btn {
min-width: 120px;
min-height: 58px;
background: #f3f3f5;
box-shadow: 9px 9px 12px #b2b2b3, -9px -9px 12px #ffffff;
display: inline-flex;
justify-content: center;
align-items: center;
border-radius: 30px;
color: #0d0d25;
text-transform: capitalize;
text-align: center;
border: none;
cursor: pointer;
outline: none !important;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
overflow: hidden;
position: relative;
z-index: 2;
padding: 6px 30px;
}
.sec-btn:hover {
border-color: #0d0d25;
box-shadow: inset 9px 9px 12px #cccccc, inset -9px -9px 12px #ffffff;
color: #0d0d25;
}
/* ******************** */
.brands-row {
display: flex;
justify-content: space-between;
margin: 0 -15px;
}
.brands-box {
padding: 0 15px;
display: flex;
align-items: center;
justify-content: center;
}
.brands-box:hover {
filter: brightness(0.3);
opacity: 0.9;
}
.brand-title .h5-title {
text-transform: uppercase;
font-weight: 500;
letter-spacing: 2px;
opacity: 0.7;
}
/* ******************** */
.section {
padding-top: 100px;
padding-bottom: 100px;
position: relative;
}
.sec-sub-title {
text-transform: uppercase;
display: inline-block;
background: #f3f3f5;
box-shadow: 9px 9px 12px #e4e4e4, -9px -9px 12px #ffffff;
padding: 3px 20px;
border-radius: 60px;
color: #ff8243;
font-size: 14px;
}
.h2-title {
font-size: 46px;
line-height: 56px;
margin-bottom: 15px;
text-transform: capitalize;
position: relative;
}
.h2-title span, .h3-title span, .h4-title span, .h5-title span, .sub-title span {
display: block;
}
.about-video-img {
position: relative;
overflow: hidden;
width: 100%;
height: 55vh;
min-height: 400px;
background-size: cover;
background-position: center;
border-radius: 40px;
box-shadow: 0 0 20px rgb(36 39 37 / 30%);
display: flex;
align-items: center;
justify-content: center;
}
.play-btn {
width: 90px;
height: 90px;
background: #f3f3f5;
box-shadow: 9px 9px 12px #b2b2b3, -9px -9px 12px #ffffff;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
transition: 0.5s;
vertical-align: middle;
position: relative;
z-index: 2;
padding-left: 4px;
padding-top: 4px;
font-size: 40px;
}
.play-btn:hover {
box-shadow: inset 9px 9px 12px #cccccc, inset -9px -9px 12px #ffffff;
}
.play-btn-wp {
text-align: center;
margin-top: 40px;
display: flex;
justify-content: center;
align-items: center;
}
.play-btn-wp span {
margin-left: 20px;
font-size: 20px;
font-weight: bold;
color: #bfbfbf;
}
/* ****** scrollbar design ******** */
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background-color: #bfbfbf;
}
::-webkit-scrollbar-thumb {
background: #ff8243;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #f16620;
}
/* **************** */
.repeat-img {
background-size: contain;
background-repeat: repeat;
}
.menu-tab-wp {
margin-bottom: 80px;
}
.menu-tab ul {
padding: 10px;
display: inline-block;
border-radius: 60px;
background: linear-gradient(145deg, #ececec, #ffffff);
box-shadow: 28px 28px 55px #d4d4d4, -28px -28px 55px #ffffff;
position: relative;
z-index: 2;
}
.menu-tab ul li, .menu-tab ul .filter-active {
display: inline-flex;
text-transform: capitalize;
font-size: 18px;
line-height: normal;
cursor: pointer;
padding: 10px 26px;
border-radius: 30px;
transition: 0.3s;
justify-content: center;
align-items: center;
}
.filter-active {
position: absolute;
left: 0;
top: 12px;
min-height: 50px;
z-index: -1;
}
.menu-tab ul li img {
margin-right: 10px;
position: relative;
top: 1px;
}
.menu-tab ul .filter-active {
color: #ffffff;
background: linear-gradient(145deg, #e3a92b, #ffc933);
}
.menu-list-row .bydefault_show .dish-box-wp {
display: inline-block !important;
}
.dish-box-wp {
display: none;
}
.dish-box {
border-radius: 30px;
background: linear-gradient(145deg, #ececec, #ffffff);
box-shadow: 28px 28px 45px #d4d4d4, -28px -28px 45px #ffffff;
display: flow-root;
padding: 0 30px 40px;
padding-top: 0;
margin: 130px 0 30px;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
}
.dish-box:hover {
transform: scale(1.03);
}
.dist-img {
margin-top: -130px;
margin-bottom: 30px;
}
.dist-img img {
box-shadow: 28px 28px 45px #d4d4d4, -28px -28px 45px #ffffff;
border-radius: 50%;
overflow: hidden;
}
.dish-rating {
font-size: 20px;
margin-bottom: 15px;
}
.dish-title {
padding: 0 30px;
}
.dish-title .h3-title {
text-transform: capitalize;
margin-bottom: 5px;
font-family: 'Playfair Display', serif;
font-weight: bold;
color: #0d0d25;
transition: 0.3s;
min-height: 76px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-weight: 900;
}
.dish-title p {
color: #bfbfbf;
}
.dish-info ul, .dist-bottom-row ul {
display: flex;
justify-content: space-between;
text-align: left;
}
.dish-info ul li {
display: inline-block;
flex: 1;
}
.dish-info ul li:last-child {
text-align: right;
border-left: 2px solid rgb(204 204 204 / 30%);
}
.dist-bottom-row ul li:last-child {
text-align: right;
}
.dish-info ul li p {
font-size: 18px;
text-transform: capitalize;
margin-bottom: 2px;
font-weight: 300;
}
.dish-info ul li b {
font-weight: 600;
}
.dish-info, .dist-bottom-row {
padding: 0 30px;
}
.dish-info {
border-bottom: 2px solid rgb(204 204 204 / 30%);
margin: 30px 0 30px;
padding-bottom: 30px;
}
.dist-bottom-row ul li {
display: flex;
align-items: center;
}
.dist-bottom-row ul li b {
font-size: 30px;
}
.dish-add-btn {
width: 40px;
height: 40px;
border: none;
border-radius: 10px;
color: #ffffff;
transition: 0.3s;
background: linear-gradient(145deg, #ffc954, #ffbc00);
box-shadow: inset 4px 4px 8px #d6a029, inset -4px -4px 8px #ffd837;
}
.dish-add-btn i {
color: #ffffff;
font-size: 22px;
}
.dish-add-btn:hover {
background: linear-gradient(145deg, #e3a92b, #ffc933);
}
/* ************ */
.xxl-title {
text-transform: capitalize;
font-size: 52px;
line-height: 72px;
margin-bottom: 30px;
}
/* ****************** */
.book-table {
overflow: hidden;
}
.book-table-shape img {
position: absolute;
top: -10px;
right: 73%;
width: 540px;
}
.book-table-shape.book-table-shape2 img {
left: 74%;
transform: scale(-1, 1);
}
.book-table-info {
margin: 30px 0 20px;
}
.table-title {
text-transform: capitalize;
margin-bottom: 20px;
letter-spacing: 1px;
}
.table-title p {
font-size: 20px;
line-height: 30px;
margin: 0;
}
.call-now {
border-left: 3px dotted rgb(13 13 37 /50%);
border-right: 3px dotted rgb(13 13 37 /50%);
padding: 15px 0;
}
.call-now i {
width: 80px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
font-size: 26px;
margin: 0 auto;
margin-bottom: 25px;
background: #f3f3f5;
box-shadow: 9px 9px 12px #b2b2b3, -9px -9px 12px #ffffff;
color: #ff8243;
}
.call-now a {
font-size: 32px;
font-weight: 500;
color: #0d0d25;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
}
.call-now a:hover, .contact-info a:hover {
color: #fcbc30;
}
#gallery {
padding-top: 120px;
}
.book-table-img {
height: 70vh;
min-height: 500px;
border-radius: 30px;
}
.back-img {
background-position: center;
background-size: cover;
}
.swiper-button-next::after, .swiper-button-prev::after {
display: none;
}
.swiper-button-wp {
position: relative;
margin-top: 60px;
display: flex;
justify-content: space-between;
height: 60px;
align-items: center;
}
.swiper-button-next, .swiper-button-prev {
position: unset;
width: 60px;
height: 60px;
display: inline-flex;
font-size: 30px;
border-radius: 50%;
overflow: hidden;
margin: 0;
color: #0d0d25;
background: #ffffff;
box-shadow: -20px 20px 60px #d4d4d4, 20px -20px 60px #ffffff;
padding-top: 1px;
padding-right: 2px;
transition: 0.3s;
}
.swiper-button-next {
box-shadow: 20px 20px 60px #d4d4d4, -20px -20px 60px #ffffff;
padding-left: 3px;
}
.swiper-button-prev:hover {
box-shadow: inset 5px 5px 20px #d4d4d4, inset -5px -5px 20px #ffffff;
color: #fcbc30;
}
.swiper-button-next:hover {
box-shadow: inset -5px 5px 20px #d4d4d4, inset 5px -5px 20px #ffffff;
color: #fcbc30;
}
.swiper-pagination {
padding: 10px 20px;
display: inline-block;
border-radius: 60px;
background: linear-gradient(145deg, #ececec, #ffffff);
box-shadow: 25px 28px 55px #d4d4d4, -28px -28px 55px #ffffff;
max-width: fit-content;
left: 50% !important;
transform: translate(-50%, 0);
bottom: 0 !important;
color: #000;
}
.swiper-pagination-bullet {
width: 10px;
height: 10px;
margin: 0px 10px !important;
border-radius: 10px;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
}
.swiper-pagination-bullet-active {
background: #fcbc30;
width: 30px;
}
/* *************** */
.team-slider {
position: relative;
}
.team-box {
padding: 20px;
border-radius: 30px;
background: linear-gradient(145deg, #ececec, #ffffff);
box-shadow: 28px 28px 45px #e6e6e6, -28px -28px 45px #ffffff;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
}
.team-box:hover {
transform: scale(1.03);
}
.team-img {
width: 100%;
height: 480px;
border-radius: 20px;
margin-bottom: 20px;
box-shadow: 9px 9px 18px rgb(194 194 194 /0.5), -9px -9px 18px rgb(255 255 255 / 0.5);
}
.team-box .h3-title {
text-transform: capitalize;
color: #0d0d25;
font-weight: 600;
}
.social-icon {
margin: 15px 0px 10px;
}
.social-icon ul li {
display: inline-block;
margin: 0 6px;
}
.social-icon ul li:last-child {
margin-right: 0;
}
.social-icon ul li:first-child {
margin-left: 0;
}
.social-icon ul li a {
width: 50px;
height: 50px;
display: inline-flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background: linear-gradient(145deg, #e6e6e6, #ffffff);
box-shadow: 4px 4px 8px #d0d0d0, -4px -4px 8px #ffffff;
color: #0d0d25;
font-size: 19px;
}
.social-icon ul li a:hover {
background: #ff8243;
}
.social-icon ul li a:hover i {
color: #ffffff !important;
}
/* *************** */
.testimonials-img {
position: relative;
}
.testimonials-img img {
position: absolute;
top: 60px;
right: 30px;
width: calc(100% + 5vw);
max-width: initial;
}
.testimonials-box {
display: flow-root;
position: relative;
padding: 30px;
padding-top: 0;
border-radius: 30px;
margin: 50px 0 30px;
background: linear-gradient(145deg, #ececec, #ffffff);
box-shadow: 28px 28px 45px #e6e6e6, -28px -28px 45px #ffffff;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
}
.testimonials-box:hover {
transform: scale(1.05);
z-index: 2;
}
.testimonial-box-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}
.testimonials-box-img {
min-width: 100px;
min-height: 100px;
border-radius: 50%;
margin-top: -50px;
box-shadow: 10px 10px 60px #d4d4d4;
}
.testimonials-box-text .h3-title {
margin-bottom: 10px;
text-transform: capitalize;
}
.testimonials-box-text p {
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.star-rating-wp {
display: block;
}
.star-rating {
font-size: 22px;
position: relative;
margin-top: 20px;
display: inline-block;
}
.star-rating::before {
content: "\f005\f005\f005\f005\f005";
font-family: "Font Awesome 5 Pro";
font-weight: 900;
color: #c8c8c8;
filter: drop-shadow(0 0.6rem 0.3rem rgba(0, 0, 0, 0.05));
letter-spacing: 4px;
}
.star-rating__fill {
position: absolute;
display: inline-block;
top: 0;
left: 0;
overflow: hidden;
animation: fill-star 2s ease-in-out;
}
.star-rating__fill::after {
content: "\f005\f005\f005\f005\f005";
font-family: "Font Awesome 5 Pro";
font-weight: 900;
color: #ff8243;
letter-spacing: 4px;
}
@keyframes fill-star {
0% {
width: 0;
}
}
/* *********** */
.faq-row {
column-count: 3;
margin: 0 -5px;
}
.faq-box {
border: 1px solid #bfbfbf;
border-radius: 30px;
background-image: linear-gradient(145deg, #e4e4e4, #ffffff);
break-inside: avoid;
margin: 0 5px 30px;
box-shadow: 10px 10px 30px rgb(207 207 208 / 20%), -10px -10px 30px rgb(255 255 255 / 90%);
}
.faq-box .h4-title {
padding: 16px 30px;
border-bottom: 1px solid #bfbfbf;
text-transform: capitalize;
font-weight: 600;
}
.faq-box p {
padding: 8px 30px 20px;
margin: 0;
}
/* *************** */
.blog-text .h4-title {
text-transform: capitalize;
margin-bottom: 15px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-weight: 900;
font-family: "playfair Display";
color: #0d0d25;
transition: 0.3s;
}
.blog-text .h4-title:hover {
color: #ff8243;
}
.blog-date {
padding: 5px 15px;
background: #f8f9fa;
box-shadow: inset 5px 5px 10px #e2e2e2, inset -5px -5px 10px #e8e8e8;
display: inline-block;
border-radius: 8px;
font-size: 14px;
margin-bottom: 20px;
}
.blog-img {
width: 100%;
height: 280px;
border-radius: 30px;
margin-bottom: 20px;
}
.blog-box {
padding: 30px 25px;
border-radius: 30px;
background: linear-gradient(145deg, #ececec, #fdfdfd);
box-shadow: 30px 30px 50px #dcdcdc, -30px -30px 50px #ffffff;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
margin-bottom: 30px;
}
.blog-box:hover {
transform: scale(1.03);
}
/* ************************ */
.newsletter-box {
padding: 60px;
border-radius: 30px;
position: relative;
overflow: hidden;
}
.newsletter-form {
margin-top: 20px;
position: relative;
}
.newsletter-form button {
position: absolute;
right: 6px;
top: 50%;
transform: translate(0, -50%);
}
.newsletter-form .form-input {
height: 68px;
border-radius: 60px;
padding: 0 150px 0 40px;
background: linear-gradient(-145deg, #e4e4e4, #f9f9f9);
}
.newsletter-box-text {
padding: 0 60px;
color: #ffffff;
}
.newsletter-box-text .h2-title {
color: #ffffff;
}
.bg-overlay {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: #f8f9fa;
opacity: 0.96;
}
.dark-overlay {
background: #0d0d25;
opacity: 0.5;
}
.sec-btn.primary-btn {
background: linear-gradient(145deg, #e26a2c, #ff8243);
color: #ffff;
border: none;
box-shadow: 4px 4px 8px #9e9e9e, -4px -4px 8px #ffffff;
}
.sec-btn.primary-btn:hover {
background: linear-gradient(145deg, #0c0c21, #0e0e28);
}
/* ***************** footer ****************** */
.top-footer, .bottom-footer {
border-top: 1px solid rgb(204 204 204 / 40%);
position: relative;
}
.footer-logo {
margin-bottom: 30px;
}
.footer-info .social-icon {
margin-top: 20px;
}
.footer-flex-box {
display: flex;
margin: 0 -10px;
}
.footer-flex-box>div {
flex: 1;
padding: 0 10px;
}
.footer-flex-box .h3-title {
text-transform: capitalize;
margin-bottom: 23px;
}
.footer-menu ul li a {
color: #0d0d25;
transition: 0.3s;
text-transform: capitalize;
}
.footer-menu ul li a:hover, .footer-menu ul li .footer-active-menu {
color: #ff8243;
}
.footer-menu ul li {
margin-bottom: 8px;
}
.footer-table-info ul li {
margin-bottom: 10px;
text-transform: capitalize;
}
.uil-clocl {
font-size: 17px;
}
.copyright-text {
padding: 20px 0;
}
.copyright-text p {
margin: 0;
}
.name {
color: #ff8243;
font-weight: bold;
}
.scrolltop {
position: absolute;
bottom: 10px;
right: 30px;
width: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background: #f3f3f5;
box-shadow: 9px 9px 12px #b2b2b3, -9px -9px 12px #ffffff;
color: #ff8243;
font-size: 26px;
transition: 0.8s cubic-bezier(0.22, 0.78, 0.45, 1.02);
border: none;
}
.scrolltop:hover {
box-shadow: inset 9px 9px 12px #cccccc, inset -9px -9px 12px #ffffff;
color: #0d0d25;
}
/* **************** responsiveness ***************** */
@media (min-width: 2100px) {
.container {
max-width: 1400px;
}
p, body, button, input {
font-size: 18px;
line-height: 32px;
}
}
@media (max-width: 1399px) {
.h1-title {
font-size: 80px;
line-height: 90px;
}
.h3-title {
font-size: 26px;
line-height: 36px;
}
.h4-title {
font-size: 24px;
line-height: 34px;
}
.h2-title {
font-size: 38px;
line-height: 48px;
}
.team-img {
height: 400px;
}
.blog-box {
padding: 30px 20px;
}
.dist-bottom-row ul li b {
font-size: 25px;
}
}
@media (max-width: 1199px) {
.main-banner {
padding: 200px 0;
}
.banner-img-wp {
height: 360px;
}
.dish-box {
padding: 0 0 40px;
}
.dist-img img {
width: 220px;
}
.dist-img {
margin-top: -110px;
}
.dist-bottom-row ul li b {
font-size: 28px;
}
.sec-text {
padding: 0;
}
.team-img {
height: 340px;
}
.testimonials-box {
padding: 30px 20px;
margin: 26px 0 30px;
}
.testimonials-box-img {
min-width: 80px;
min-height: 80px;
margin-top: -80px;
}
.faq-box .h4-title {
padding: 16px 20px;
}
.faq-box p {
padding: 8px 20px 20px;
}
.blog-img {
height: 240px;
}
.newsletter-box-text {
padding: 0;
}
.footer-flex-box>div {
padding: 0 10px;
}
.star-rating {
font-size: 19px;
}
.testimonial-box-top {
margin-bottom: 10px;
}
.call-now a {
font-size: 28px;
}
.menu-box {
padding: 50px 20px 30px 20px;
}
.menu-img {
width: 140px;
}
}
@media (max-width: 991px) {
.js-parallax-scene {
display: none;
}
.main-banner {
padding: 140px 0 60px;
}
.h1-title {
font-size: 60px;
line-height: 80px;
}
.banner-img-wp {
padding: 0;
height: 75vw;
padding-top: 50px;
}
.brands-box {
padding: 0 30px;
}
.brands-row {
margin: 0 -30px;
}
.menu-tab ul {
white-space: nowrap;
overflow: hidden;
overflow-x: auto;
}
.menu-tab::after {
content: "";
position: absolute;
right: 0;
top: 0;
width: 100px;
height: 100%;
pointer-events: none;
opacity: 0.2;
border-radius: 0 60px 60px 0;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
}
.sec-text {
margin-top: 40px;
}
.call-now {
border: none;
margin: 40px 0;
border-top: 3px dotted rgb(13 13 17 / 50%);
border-bottom: 3px dotted rgb(13 13 17 / 50%);
padding: 30px 0;
}
.book-table-info {
max-width: 300px;
margin: 30px auto 0;
}
.swiper-button-wp .swiper-button {
display: none !important;
}
.testimonials-img img {
position: unset;
width: 100%;
}
.testimonials-img {
margin-bottom: 60px;
}
.faq-row {
column-count: 1;
margin: 0;
}
.newsletter-box {
padding: 40px;
}
.footer-info {
margin-bottom: 50px;
}
.footer-flex-box {
display: block;
margin: 0;
}
.footer-flex-box>div {
padding: 0;
margin-bottom: 30px;
}
.faq-box {
margin: 0;
margin-bottom: 30px;
}
.footer-flex-box>div:last-child {
margin: 0;
}
.scrolltop {
bottom: 130px;
}
.footer-menu ul {
max-width: 300px;
}
#gallery {
padding-top: 90px;
}
.swiper-pagination-bullet {
margin: 0 5px !important;
width: 8px;
height: 8px;
}
.swiper-pagination {
padding: 6px 20px;
}
.swiper-button-wp {
margin-top: 40px;
}
.swiper-pagination-bullet-active {
width: 16px;
}
.dish-title .h3-title {
display: block;
min-height: auto;
margin-bottom: 12px;
}
.menu-img {
width: 180px;
margin-inline: auto;
margin-bottom: 20px;
}
#js-scroll-content {
transform: unset !important;
}
body {
height: auto !important;
}
.menu-tab ul::-webkit-scrollbar {
height: 0;
}
.menu-tab {
position: relative;
display: flex;
}
}
@media (max-width: 767px) {
.banner-img-wp {
height: 75vw;
min-height: 60vw;
width: auto;
}
.dist-img img {
width: 180px;
}
.dist-img {
margin-top: -80px;
}
.menu-tab-wp {
margin-bottom: 60px;
}
.dish-box {
margin: 80px 0 30px;
}
.book-table-img {
min-height: 340px;
height: 60vh;
}
.team-img {
height: 430px;
}
.dish-info ul li p {
font-size: 16px;
line-height: 26px;
margin: 0;
}
.dish-info ul li b {
font-size: 14px;
}
.brands-box {
padding: 0 25px;
}
.brands-row {
margin: 0 -25px;
}
.menu-tab ul li {
padding: 10px 20px;
}
}
@media (max-width: 575px) {
.container, .container-fluid {
padding: 0 30px;
}
.h1-title {
font-size: 40px;
line-height: 60px;
margin-bottom: 20px;
}
.h1-title span {
background-size: 100% 8px;
}
.banner-img-wp {
height: 90vw;
}
.about-video-img {
height: 30vw;
min-height: 280px;
border-radius: 30px;
}
.brands-box {
padding: 0 15px;
flex: 0 0 33%;
margin-bottom: 30px;
}
.brands-row {
margin: 0 -15px;
flex-wrap: wrap;
justify-content: center;
}
.dish-box {
max-width: 340px;
margin: 80px auto 30px;
padding: 0 0 30px;
}
.blog-sec.section {
padding-bottom: 0;
}
.brands-box img {
max-width: 80%;
}
.brand-title {
text-align: center;
}
.play-btn {
width: 70px;
height: 70px;
}
.play-btn-wp span {
font-size: 18px;
}
.newsletter-box {
padding: 15px;
}
.newsletter-form .form-input {
padding: 0 130px 0 12px;
}
.menu-box {
display: block;
text-align: center;
}
.menu-box-right .dish-title .h3-title {
padding: 0;
}
.gallery-img {
height: 50vw;
}
.contact-info a {
font-size: 18px;
line-height: 28px;
}
}
@media (max-width: 480px) {
.team-img {
height: 330px;
}
}
@media (max-width: 400px) {
.container, .container-fluid {
padding: 0 15px;
}
.section {
padding-top: 60px;
padding-bottom: 60px;
}
.newsletter-form button {
position: unset;
transform: translate(0);
box-shadow: none !important;
margin-top: 20px;
}
.newsletter-form .form-input {
padding: 0 30px;
}
.team-box .h3-title {
min-height: 72px;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
}
.team-img {
height: 280px;
}
.blog-box {
padding: 20px;
}
}
$(document).ready(function ($) {
"use strict";
var book_table = new Swiper(".book-table-img-slider", {
slidesPerView: 1,
spaceBetween: 20,
loop: true,
autoplay: {
delay: 3000,
disableOnInteraction: false,
},
speed: 2000,
effect: "coverflow",
coverflowEffect: {
rotate: 3,
stretch: 2,
depth: 100,
modifier: 5,
slideShadows: false,
},
loopAdditionSlides: true,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
});
var team_slider = new Swiper(".team-slider", {
slidesPerView: 3,
spaceBetween: 30,
loop: true,
autoplay: {
delay: 3000,
disableOnInteraction: false,
},
speed: 2000,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
breakpoints: {
0: {
slidesPerView: 1.2,
},
768: {
slidesPerView: 2,
},
992: {
slidesPerView: 3,
},
1200: {
slidesPerView: 3,
},
},
});
jQuery(".filters").on("click", function () {
jQuery("#menu-dish").removeClass("bydefault_show");
});
$(function () {
var filterList = {
init: function () {
$("#menu-dish").mixItUp({
selectors: {
target: ".dish-box-wp",
filter: ".filter",
},
animation: {
effects: "fade",
easing: "ease-in-out",
},
load: {
filter: ".all, .breakfast, .lunch, .dinner",
},
});
},
};
filterList.init();
});
jQuery(".menu-toggle").click(function () {
jQuery(".main-navigation").toggleClass("toggled");
});
jQuery(".header-menu ul li a").click(function () {
jQuery(".main-navigation").removeClass("toggled");
});
gsap.registerPlugin(ScrollTrigger);
var elementFirst = document.querySelector('.site-header');
ScrollTrigger.create({
trigger: "body",
start: "30px top",
end: "bottom bottom",
onEnter: () => myFunction(),
onLeaveBack: () => myFunction(),
});
function myFunction() {
elementFirst.classList.toggle('sticky_head');
}
var scene = $(".js-parallax-scene").get(0);
var parallaxInstance = new Parallax(scene);
});
jQuery(window).on('load', function () {
$('body').removeClass('body-fixed');
//activating tab of filter
let targets = document.querySelectorAll(".filter");
let activeTab = 0;
let old = 0;
let dur = 0.4;
let animation;
for (let i = 0; i < targets.length; i++) {
targets[i].index = i;
targets[i].addEventListener("click", moveBar);
}
// initial position on first === All
gsap.set(".filter-active", {
x: targets[0].offsetLeft,
width: targets[0].offsetWidth
});
function moveBar() {
if (this.index != activeTab) {
if (animation && animation.isActive()) {
animation.progress(1);
}
animation = gsap.timeline({
defaults: {
duration: 0.4
}
});
old = activeTab;
activeTab = this.index;
animation.to(".filter-active", {
x: targets[activeTab].offsetLeft,
width: targets[activeTab].offsetWidth
});
animation.to(targets[old], {
color: "#0d0d25",
ease: "none"
}, 0);
animation.to(targets[activeTab], {
color: "#fff",
ease: "none"
}, 0);
}
}
});
Also see: Tab Triggers