Skip to content

Instantly share code, notes, and snippets.

View bkaestner's full-sized avatar

Benjamin Kästner bkaestner

View GitHub Profile
@bkaestner
bkaestner / detangle.el
Created February 19, 2022 13:16
Detangling ideas
;;; detangle.el --- tangle code into Org files -*- lexical-binding: t; -*-
;; Copyright (C) 2022
;; SPDX-License-Identifier: MIT
;; Author: Benjamin Kästner
;; Keywords: convenience
;;; Commentary:
@bkaestner
bkaestner / index.html
Last active September 13, 2015 19:50
Shows how to change the style of a fixed element during scroll events.
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
#head{ background: transparent; position:fixed; text-align: center; left:0;top:0; right:0; height:40px;}
#head.scrolling { background: blue;}
#head{ transition: 1s ease all;}
body{padding-top: 45px;}
</style>