Skip to content

Instantly share code, notes, and snippets.

@SustakX
SustakX / index.html
Created July 6, 2018 13:20
Vintage Television Set Noise Effect in CSS3
<div class="tvNoiseContain">
<img src="https://prashantsani.com/Misc/codepen/tv.svg" alt="" class="tv">
<div class="noiseContain">
<div></div>
</div>
</div>
<!--
Vintage CSS3 TV Noise
@SustakX
SustakX / polaroid.html
Created June 14, 2018 08:27
Create a polaroid picture effect with CSS
<html>
<head>
<style>
.polaroid-images a {
background: #fff;
display: inline;
float: left;
margin: 0 0 27px 30px;
@SustakX
SustakX / README.md
Created May 23, 2018 13:51 — forked from dariusk/README.md
This Twine macro lets you make the screen shake! Tested in Chrome and Firefox. Should work in Opera and IE 10+. Uses CSS3 animations. #TwineHacks

This Twine macro lets you make the screen shake! Tested in Chrome and Firefox. Should work in Opera and IE 10+. Uses CSS3 animations, taken from this CSS Reset tutorial.

See a demo in action here.

How to set it up

IMPORTANT NOTE: Due to a bug in Twine 1.3.5, macros do not work on the Start passage. If you want to use this code (or any other macro) on your starting passage, you should put your start passage in a new passage called "ActualStart" and then put the following code in the Start passage:

<<display ActualStart>>
@SustakX
SustakX / two-way-binding.js
Created May 22, 2018 08:10 — forked from straker/two-way-binding.js
Simple and small two-way data binding between DOM and data
/**
* @param {object} scope - Object that all bound data will be attached to.
*/
function twoWayBind(scope) {
// a list of all bindings used in the DOM
// @example
// { 'person.name': [<input type="text" data-bind="person.name"/>] }
var bindings = {};
// each bindings old value to be compared for changes