Skip to content

Instantly share code, notes, and snippets.

@mstevenson
mstevenson / Fps.cs
Last active September 8, 2025 13:44
An accurate FPS counter for Unity. Works in builds.
using UnityEngine;
using System.Collections;
public class Fps : MonoBehaviour
{
private float count;
private IEnumerator Start()
{
GUI.depth = 2;
anonymous
anonymous / Pull-Menu---Menu-Interaction-Concept.markdown
Created December 23, 2014 18:58
Pull Menu - Menu Interaction Concept

Playing with CSS Filters.

Using contrast() to posterise the image, in turn rounding the overlapped blurred regions of the two circles to a block colour.

A Pen by Sam Jarvis on CodePen.

License.

Moving things around with Velocity.js

I'm moving around a whole bunch of elements with Julian Shapiro's Velocity.js. It's running pretty well on my Chrome at anywhere between 60 - 48 frames per second, impressive :)

It took around 4 hours to bang this out after first looking at the documentation, pretty easy to use if you are already a jQuery user. http://julian.com/research/velocity/

No markup because why select when you can create right?

*** I should add that this sort of thing (animation sequence) isn't really what Velocity.js was built for, but I just wanted to crank up the elements/intensity to see how the browser handled it. Incorporating Velocity.js in to your average UI transitions/animations should be a dream :)

anonymous
anonymous / Material-Design-Spinner.markdown
Created January 5, 2015 00:46
Material Design Spinner

Material Design Spinner

CSS and SVG recreation of the new Google material design loading spinner.

A Pen by Fran Pérez on CodePen.

License.

Material Design Spinner

CSS and SVG recreation of the new Google material design loading spinner.

A Pen by Fran Pérez on CodePen.

License.