Skip to content

Instantly share code, notes, and snippets.

View mesqueeb's full-sized avatar
👨‍💻
Accepting freelance work!

Luca Ban mesqueeb

👨‍💻
Accepting freelance work!
View GitHub Profile
@Matt54
Matt54 / SpotLightsColorBlendBoxView.swift
Created July 22, 2024 04:00
RealityView playing an animation sequence which blends spotlights inside of an extruded box
import RealityKit
import SwiftUI
struct SpotLightsColorBlendBoxView: View {
var body: some View {
GeometryReader3D { proxy in
RealityView { content in
let size = content.convert(proxy.frame(in: .local), from: .local, to: .scene)
let entity = try! getRootEntity(boundingBox: size)
content.add(entity)
@ayamflow
ayamflow / gist:b602ab436ac9f05660d9c15190f4fd7b
Created May 9, 2016 19:10
Safari border-radius + overflow: hidden + CSS transform fix
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);
@chrisdickinson
chrisdickinson / smooth_sortable_animating.html
Created January 29, 2011 05:39
smoothly animate jquery sortable lists.
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
ul { float:left; margin-right:20px; }
body { color:white; font-family:Helvetica, sans-serif; text-shadow:1px 1px 1px rgba(0,0,0,0.2); }
ul { width:512px; overflow:hidden; border-radius:6px; }