Skip to content

Instantly share code, notes, and snippets.

@jake-101
jake-101 / TransitionExpand.vue
Created June 3, 2021 05:31
Transition Expand Vue component
<template>
<div class="reflow">
<transition
name="expand"
@enter="enter"
@after-enter="afterEnter"
@leave="leave"
>
<slot />
</transition>

Keybase proof

I hereby claim:

  • I am jake-101 on github.
  • I am jake101 (https://keybase.io/jake101) on keybase.
  • I have a public key ASCpwtWTNPz-m2fb9fCDLoYVvx7eYlPG9lySqk89C_fGZAo

To claim this, I am signing this object:

@jake-101
jake-101 / gist:5c930e5af129ecd9f003cac9c7f13273
Last active July 11, 2019 03:57
Add ACF field to WPGraphQL WooCommerce
<?php
add_action( 'graphql_register_types', function() {
register_graphql_field( 'Product', 'tech_specs', [
'type' => 'String',
'description' => __( 'tech specs', 'wp-graphql' ),
'resolve' => function( $post ) {
$id = $post->ID;
$specs = get_field( "tech_specs",$id);
$enc = strip_tags($specs,"<p>,<br>,<ul>,<li>");