This file contains 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
import type { ComponentType } from "react" | |
import { Children, cloneElement } from "react" | |
// Learn more: https://www.framer.com/docs/guides/overrides/ | |
export function withStaggerChildren(Component): ComponentType { | |
return (props: any) => { | |
const { children } = props | |
const clonedChildren = Children.map(children, (child, index) => | |
cloneElement(child, { |
This file contains 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
import { addPropertyControls, ControlType, RenderTarget } from "framer" | |
export const flexDirection = { | |
type: ControlType.SegmentedEnum, | |
title: "Direction", | |
options: ["row", "column"], | |
optionTitles: [ | |
"⇆", | |
"⇅", | |
// @ts-ignore |
This file contains 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
// Welcome to Code in Framer | |
// Get Started: https://www.framer.com/docs/guides/ | |
import React, { useEffect, useState } from "react" | |
const Card = (props) => { | |
const { user } = props | |
return ( | |
<div> |
This file contains 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
81430cfbdd04a531528121a35f2950e8422429ab |
This file contains 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
/*! Fades out the whole page when clicking links */ | |
$('a').click(function(e) { | |
e.preventDefault(); | |
newLocation = this.href; | |
$('body').fadeOut('slow', newpage); | |
}); | |
function newpage() { | |
window.location = newLocation; | |
} |
This file contains 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
var getUrl = window.location; | |
var getHomeUrl = getUrl.protocol + "//" + getUrl.host; | |
$j('a[href="' + getHomeUrl + '"]').on('click', (event) => { | |
event.preventDefault(); | |
// Barba.Pjax.goTo(getHomeUrl); | |
// console.log('click'); | |
}); |