Skip to content

Instantly share code, notes, and snippets.

@Spepe13
Spepe13 / gsap-magento.md
Last active March 13, 2023 08:30
[GSAP to magento 2] #Magento #GSAP

Add Greensock Gsap library to Magento 2

With cdn

Add below code to the file that you want to develop the animations.main.js or another perhaps animations.js

require([
	'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.1/gsap.min.js',
    'https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.1/ScrollTrigger.min.js' 
@Spepe13
Spepe13 / ssh-connect-on-mac.md
Last active November 17, 2022 16:30
[SSH Server Connection on Mac] #Magento #Elegento

Connecting to a Server via SSH in Terminal




Step 1: Open Terminal

Go to Aplications --> Terminal

Step 2: Enter the SSH command

@Spepe13
Spepe13 / rem.md
Created November 2, 2020 08:58
[Convert px to rem] #CSS

Convert px to rem global.

How to convert px to rem and use rem to website.

16px = 1rem


html{
 font-size: 62.5%;
@Spepe13
Spepe13 / shipping-cost.md
Last active February 18, 2021 11:16
[Shipping Cost Method] #Wordpress #Woocommerce

Shipping Cost Method

Set the Shipping Cost Method


function swwp_wc_shipping_cost_tiers( $cost, $method ) {

	if ( in_array( $method->get_instance_id(), array( 1, 23 ) ) && WC()->cart ) {