Skip to content

Instantly share code, notes, and snippets.

View MichaelSRose's full-sized avatar

Michael S Rose MichaelSRose

  • self
  • Columbia, Maryland USA
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body {
font-family: Arial, sans-serif;
font-size: 15px;
background: white;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
body {
font-family: Arial, sans-serif;
font-size: 15px;
background: white;
@MichaelSRose
MichaelSRose / Animated Counter.markdown
Last active January 18, 2017 21:04
Animated Counter
@MichaelSRose
MichaelSRose / CSS background change on scroll.markdown
Created September 28, 2015 07:48
CSS background change on scroll
@MichaelSRose
MichaelSRose / script.js
Created September 28, 2015 07:53
three.js experiment 3
// THREE.JS variables
var globalW = 600,
globalH = 600,
fov = 45,
far = 1000,
container = document.body,
renderer = new THREE.WebGLRenderer(),
scene = new THREE.Scene(),
cam = new THREE.PerspectiveCamera(fov,globalW/globalH,1,far),
mainLight = new THREE.PointLight(0xd29553),
@MichaelSRose
MichaelSRose / Overview of the available positioning types.markdown
Created October 27, 2015 05:43
Overview of the available positioning types

Overview of the available positioning types

A demo showing how the positioning types (relative, absolute, fixed, and sticky) work.

A Pen by George on CodePen.

License.

@MichaelSRose
MichaelSRose / Little-known thing #1 - Positioning elements with absolute positioning type.markdown
Created October 27, 2015 05:47
Little-known thing #1 - Positioning elements with absolute positioning type

Little-known thing #1 - Positioning elements with absolute positioning type

A demo showing how the position of an absolutely positioned element affected by the position of its ancestors.

A Pen by George on CodePen.

License.