Skip to content

Instantly share code, notes, and snippets.

View oooh-boi's full-sized avatar

Oooh Boi oooh-boi

View GitHub Profile
@oooh-boi
oooh-boi / gist:b25f29433421f353e8d365e46a9d8f71
Created January 16, 2020 10:45
OoohBoi Video Tutorial : Gradient Text in Elementor PRO
/* EXAMPLE GRADIENTS */
/* To be used with Heading widget */
selector .elementor-heading-title {
background-image: linear-gradient(to right top, #ec2551, #c52a6e, #943979, #633e71, #3d3a59);
background-clip: text;
-webkit-background-clip: text;
}
/* To be used with Text Editor widget */
/*
By oooh boi - Elementor Tips and Tricks
This will create "triangles" custom shape divider on the
right-hand side of the column (vertical), and then crete
another one (horizontal) for mobile devices.
*/
@media (min-width: 768px) {
selector:before {
content: "";
position: absolute;
@oooh-boi
oooh-boi / OoohBoi GSAP Teleporter
Created December 12, 2021 10:34
Copy-paste code into Elementor's Custom Code file or use Snippets plugin for WordPress. If you use Snippets omit the SCRIPT wrapping element.
<script>
;( function() {
document.addEventListener( 'DOMContentLoaded', my_stuff );
function my_stuff() {
let is_mobile = false;
let hero = document.querySelector( '#hero' );
@oooh-boi
oooh-boi / gist:cd26df98777b2fbadf8d148653975e94
Created March 30, 2022 08:46
YouTube - The floating link preview
/* This is full copy-paste for the Elementotr PRO's Custom Code. In case you use "Simple custom CSS and JS" plugin,
you'll have to separate the CSS from JS, and exclude the STYLE and SCRIPT tags */
<style>
[data-hover-img] .img-floater {
position: absolute;
opacity: 0;
width: 400px;
height: 300px;
top: -310px; /* or... 150px to center it vertically */
@oooh-boi
oooh-boi / gist:3e3fbb773ebbd647b92de8880aa4c5ef
Last active August 5, 2022 07:39
CSS and jQuery code used in "Custom Slider in Elementor built with Elementor" video tutorial
/* ---------- CSS
- should be "attached" to the master Section */
/* make 100% wide columns possible for Desktop devices in Elementor */
.custom-swiper .elementor-container .elementor-row {
/*flex-wrap: wrap;*/
}
/* make all the colums-slides 100% wide and full screen tall */
.custom-swiper > .elementor-container > .elementor-row > .elementor-element.elementor-column {
width: 100%;
@oooh-boi
oooh-boi / gist:fc444395f7e4abcf40ab70462f513d5d
Created November 7, 2019 16:22
Breakout of images in Elementor PRO
/* default example (how to move the Background Overlay element to the right hand side for 15%) */
selector .elementor-background-overlay {
width: 115%;
}
@media (max-width: 767px) {
selector .elementor-background-overlay {
top: 30%;
width: 100%;
@oooh-boi
oooh-boi / ob-show-more-show-less-gsap.css
Last active November 29, 2022 23:02
Show More - Show Less content in Elementor by using the GSAP (css)
body:not(.elementor-editor-active) .ob-unfold .ob-content { overflow: hidden; height: 200px; }
body:not(.elementor-editor-active) .ob-unfold .ob-blanket { cursor: pointer; z-index: 100; }
/* If you plan to use variable initial heights... */
/*
body:not(.elementor-editor-active) .ob-unfold .ob-content.ob-height-300 { height: 300px; }
body:not(.elementor-editor-active) .ob-unfold .ob-content.ob-height-toggle { height: 0px; }
*/
/* don't forget to append these classes to your ob-content in Elementor !!! */
@oooh-boi
oooh-boi / gist:5d1f00ee8362292dba0af27700b05d74
Created January 7, 2020 18:51
OoohBoi Video Tutorial : Super-flexible Sections and Columns in Elementor PRO
/* MAGICAL CSS Rule */
selector .elementor-container .elementor-row {
flex-wrap: wrap;
/* uncomment for columns alignment */
/* justify-content: center; */
}
/* Responsive Columns Alignment - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
selector .elementor-container .elementor-row {
@oooh-boi
oooh-boi / gist:80e78f98fb1c0cd48c56a0a414d934b3
Last active May 5, 2023 18:28
Show hide Header on scroll - OoohBoi video tutorial
<script>
"use strict";
OB_ready(OB_doWhenReady);
function OB_doWhenReady() {
// localize everything
var ooohBoi = window.ooohBoi || {};
// local scope variables
ooohBoi.prev_scroll_pos = window.scrollY || document.body.scrollTop;
ooohBoi.cur_scroll_pos;