Unverified

Name

Elementor-Reveal-On-Click

About

Show further info with click that replicates Apple IOS 17

Language

HTML

Rating

Voted: 1 by 1 user(s)

Codevault

WebSquadron

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

23/02/2024

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

Elementor-Reveal-On-Click

 
                    
1<style>
2 #Cont444 {
3 transition: opacity 0.5s ease-in-out;
4 opacity: 0; /* Start with Cont444 invisible */
5 display: none; /* Ensure it doesn't take up space when not visible */
6 margin-top: -400px;
7 }
8 #Icon333 {
9 transition: transform 0.5s ease-in-out; /* Animation for rotating the icon */
10 }
11</style>
12 
13<script>
14document.addEventListener("DOMContentLoaded", function() {
15 var cont444 = document.getElementById('Cont444');
16 var icon333 = document.getElementById('Icon333');
17 var isOpen = false; // Track if Cont444 is open
18 
19 // Ensure the SVG fill transition is set
20 var svgElement = icon333.querySelector('svg');
21 svgElement.style.transition = 'fill 0.75s ease-in-out';
22 
23 icon333.addEventListener('click', function() {
24 if (isOpen) {
25 cont444.style.opacity = '0';
26 setTimeout(function() { cont444.style.display = 'none'; }, 500);
27 icon333.style.transform = 'rotate(0deg)'; // Rotate back
28 svgElement.style.fill = '#000000'; // Change SVG fill to black
29 } else {
30 cont444.style.display = 'block';
31 setTimeout(function() { cont444.style.opacity = '1'; }, 10);
32 icon333.style.transform = 'rotate(45deg)'; // Rotate 45 degrees
33 svgElement.style.fill = '#FF0050'; // Change SVG fill to red
34 }
35 isOpen = !isOpen; // Toggle state
36 });
37});
38</script>

1

Related Snippets

Please see some snippets below related to this snippet..

Elementor

Unverified

0

hover-expand

Added: 5 months ago

Last Updated: 5 months ago

hover-expand

Elementor

AI Verified

0

Current Year Shortcode

Added: 5 months ago

Last Updated: 5 months ago

Elementor

Unverified

0

show youtube channel on wordpress

Added: 2 months ago

Last Updated: 2 months ago

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

31

Remove Unused Javascript

Added: 1 year ago

Last Updated: 1 month ago

Remove Unused Javascript - and improve your Page Speed Insight Score

WooCommerce

Pro Verified

10

Deactivate some WooCommerce Checkout Fields

Added: 1 year ago

Last Updated: 1 week ago

Deactivate some WooCommerce Checkout Fields from showing

Elementor

AI Verified

6

CSS Grid Aid

Added: 7 months ago

Last Updated: 1 month ago

This can be used for any WordPress Builder to aid working with CSS Grids.