Skip to content

Instantly share code, notes, and snippets.

@idettman
idettman / index.html
Created May 16, 2019 04:52
Slow-mo Physics (Time Scaling)
<!--
Matter.js - Time Scaling Example
http://brm.io/matter-js/
-->
@idettman
idettman / gravitational-lens-of-a-black-hole.markdown
Created May 16, 2019 04:52
Gravitational Lens of a Black Hole
@idettman
idettman / fluid-simulation-with-navier-stokes.markdown
Created May 16, 2019 04:51
Fluid Simulation with Navier Stokes
@idettman
idettman / index.html
Created May 16, 2019 04:47
Pure Css "day and night" toggle
<div class="toggleWrapper">
<input type="checkbox" class="dn" id="dn"/>
<label for="dn" class="toggle">
<span class="toggle__handler">
<span class="crater crater--1"></span>
<span class="crater crater--2"></span>
<span class="crater crater--3"></span>
</span>
<span class="star star--1"></span>
<span class="star star--2"></span>

Full CSS Map creator

A full CSS map creator with toolbar. The differents input radio allows to change the size and the color of each element. The number of elements, the maximum sizes and colors can be changed easily thanks to Haml and Sass

A Pen by Vincent Durand on CodePen.

License.

@idettman
idettman / index.haml
Created May 16, 2019 04:46
Pure CSS minesweeper
// Match the SCSS variables here
- rows = 9
- cols = 9
- count = rows * cols
%form
- count.times do |i|
%input{:type => "checkbox", :id => "c#{i+1}"}
%input{:type => "checkbox", :id => "f#{i+1}"}
@idettman
idettman / index.haml
Last active October 29, 2025 04:58
Solar System animation - Pure CSS
.description
%h1 Solar System
%hr/
%p
Here is a true time scaled solar-system, which means that every object has a time relative to an Earth year.
You can change the number in second of the
%br/
%code $year-in-second
variable to increase the speed of revolutions. Here 1 year = 30 seconds.
@idettman
idettman / animating-svg-along-a-path.markdown
Created May 16, 2019 04:45
Animating SVG along a path