Skip to content

Instantly share code, notes, and snippets.

View milksense's full-sized avatar
:copilot:

milksense

:copilot:
View GitHub Profile
@uxderrick
uxderrick / ANIMATION-RESOURCES.md
Last active December 30, 2025 21:28
Web Animation Best Practices & Guidelines - A comprehensive guide to creating great web animations

Web Animation Best Practices & Guidelines

Document Purpose

This is a comprehensive reference guide for creating high-quality web animations. Use this as a knowledge base for implementing animations in web applications. All principles, timing values, and easing functions provided here are production-tested and ready to use.


Core Principles

Principle 1: Natural Motion

@pqoqubbw
pqoqubbw / settings.json
Created October 20, 2025 12:14
.vscode/
{
"css.customData": [".vscode/tailwind.json"]
}
import { ThemedText } from "@/components/themed-text";
import { BottomSheet, Button, Host, Slider } from "@expo/ui/swift-ui";
import { frame, offset } from "@expo/ui/swift-ui/modifiers";
import { Canvas, Fill, Shader, Skia, vec } from "@shopify/react-native-skia";
import { useState } from "react";
import {
PlatformColor,
StyleSheet,
useWindowDimensions,
View,
export const init = async () => {
const lp = retrieveLaunchParams();
const isDebug = lp.startParam === "debug";
$debug.set(isDebug);
if (isDebug && ["android", "ios"].includes(lp.platform)) {
try {
const eruda = await import("eruda");
eruda.default.init({
tool: ["console", "elements", "network", "resources", "info"],
@KlassenKonstantin
KlassenKonstantin / AnimatedFocusIndicator.kt
Created May 28, 2024 10:27
Animated focus indicator
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
BorderPathTheme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
Box(
modifier = Modifier
.fillMaxSize()
@JunkFood02
JunkFood02 / Motion.kt
Last active July 19, 2024 11:57
A music player demo made with Jetpack Compose animation APIs, including shared element transition, list animations, animated content, etc.
package com.example.compose_debug
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.CubicBezierEasing
import androidx.compose.animation.core.Easing
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.PathEasing
@rexydye
rexydye / gradient.md
Created January 2, 2024 09:54
Add titlebar gradient to VS Code like in intelij idea / other jetbrains IDE
  1. Install this extension: Custom CSS and JS Loader
  2. Create vscodestyle.css file somewhere on your system with this content:
.monaco-workbench .part.titlebar {
  position: relative;
}
.monaco-workbench .part.titlebar::before {
  content: "";
  position: absolute;
 top: 50%;
@KlassenKonstantin
KlassenKonstantin / TextTransition.kt
Created October 1, 2023 17:42
Cascading Text Transition
@Composable
fun TextTransition(textAndColor: Pair<String, Color>) {
AnimatedContent(
targetState = textAndColor,
transitionSpec = {
fadeIn() togetherWith fadeOut()
}
) { (text, color) ->
Row {
text.forEachIndexed { index, char ->
@ChristopherA
ChristopherA / touchidforsudo.md
Last active December 2, 2023 03:27
TouchID for sudo (updated for Sonoma 14.0)
@KlassenKonstantin
KlassenKonstantin / ClippedForeground.kt
Last active May 7, 2024 10:35
evervault.com inspired animation
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.drawWithContent
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.BlendMode
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.nativeCanvas
@Composable