Skip to content

Instantly share code, notes, and snippets.

View stormcloud266's full-sized avatar

Tawnee stormcloud266

View GitHub Profile
@stormcloud266
stormcloud266 / toggle.js
Last active January 30, 2022 17:45
Day/night mode toggle
import React from 'react'
import { useState } from 'react'
import { motion } from 'framer-motion'
import classnames from 'classnames'
import * as styles from './toggle.module.scss'
const iconVariants = {
hidden: {
scale: 0.7,
},
@stormcloud266
stormcloud266 / bgZoom.js
Last active March 26, 2022 07:42
scales background image when scrolled
import React from 'react'
import { ScrollPercentage } from 'react-scroll-percentage'
import { motion, useMotionValue, useTransform } from 'framer-motion'
const BgZoom = () => {
const x = useMotionValue()
const background = useTransform(x, [0.5, 1], [1, 1.2])
return (
<ScrollPercentage as='div' onChange={(percentage) => x.set(percentage)}>
{
	// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
	// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
	// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
	// same ids are connected.
	
	"Implicitly Returned Arrow Function": {
		"prefix": "iraf",
		"body": ["($1) => (", "\t$0", ")"]
@stormcloud266
stormcloud266 / resources.md
Last active November 19, 2022 00:53
List of resources I use for web development.