This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/naughtyduk/liquidGL/scripts/liquidGL.js"></script> | |
<script> | |
/* | |
* ================================================================================= | |
* PART 1: Initialize the Glass Effect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* =================================================================== | |
* Main Glass Container Styles | |
* This block controls the fixed element that holds the glass effect. | |
* =================================================================== | |
*/ | |
/* Rule for the parent container that is fixed on the page. */ | |
.fixed-glass-container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg style="display: none"> | |
<!-- | |
This SVG defines a custom filter for a liquid glass distortion effect. | |
It should be placed somewhere in your HTML (preferably near the top, such as in the <head> or before closing </body>). | |
--> | |
<filter id="de-glass-distortion" x="0%" y="0%" width="100%" height="100%" filterUnits="objectBoundingBox"> | |
<!-- | |
1) Turbulence: Generates a noise texture for the distortion | |
- `type="fractalNoise"` creates a smoother, cloudy noise |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
1) Base wrapper | |
- Creates a positioned container that clips overflow. | |
- All visual effects will be applied within this boundary. | |
*/ | |
.de-liquidGlass-wrapper { | |
position: relative; | |
overflow: hidden; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($) { | |
// --- UTILITY: Throttle function to limit execution frequency --- | |
// Prevents the scroll handler from firing too often, improving performance | |
function throttle(func, limit) { | |
let inThrottle; | |
return function() { | |
const args = arguments; | |
const context = this; | |
if (!inThrottle) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* === Sticky Tab Scroll Section Styles === */ | |
/* Main wrapper for the scroll-based tab system */ | |
.scroll-tabs { | |
position: relative; /* Establishes a reference point for absolute or sticky positioning within */ | |
} | |
/* Makes the row inside .scroll-tabs sticky so it stays fixed while scrolling */ | |
.scroll-tabs .et_pb_row { | |
position: -webkit-sticky; /* For Safari support */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.grid-col, | |
.grid-col > div, | |
.grid-col > div > article { | |
height:100%; | |
margin-bottom: 0;; | |
} | |
.card { | |
width:100%; /* Ensure the card is 100% width of the column */ | |
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; /* Add a shadow to make it stand out */ | |
border-radius:10px; /* Subtle rounding on the corners */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
// get the post ID | |
$post_id = get_the_ID(); | |
?> | |
<article id="<?php echo $post_id; ?>" <?php post_class( 'et_pb_post clearfix grid-item'); ?>> | |
<div class="card"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adjust the value 2 and 2fr according to the column count you need | |
**/ | |
@media (max-width: 767px) { | |
.default-style ul.products { | |
grid-template-columns: repeat(2,minmax(10px,2fr))!important; | |
} | |
} |
NewerOlder