Drag and throw elements and watch them continue naturally with momentum, respect bounds and optionally snap to a grid. This is the demo seen at http://www.greensock.com/draggable/
A demo showing multiple split types and effects. More codepen demos here: http://codepen.io/collection/KiEhr/
Forked from GreenSock's Pen SplitText: Multiple Split Types.
A Pen by Secret Sam on CodePen.
github repo for this pen: https://github.com/legomushroom/velocity
A Pen by LegoMushroom on CodePen.
Part of the SplitText Collection
Forked from GreenSock's Pen SplitText: Words dancing in 3D.
A Pen by valery sntx on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.js"></script> | |
<script> | |
(function Templify(undefined) { | |
var models = {}; | |
function replace(template, pattern, value){ | |
var expression = new RegExp('\\['+pattern+'\\]'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//make a limited set of underscore functions transparently unwrap knockout observables | |
(function knockoutifyUnderscore(_) { | |
var unwrap = ko.utils.unwrapObservable; | |
//These can be shimed in a standard way | |
var koFriendly = ['map', 'filter', 'find', 'each', 'findBy', 'first', 'last', 'head', 'tail', 'union', 'compact', 'flatten', 'difference', 'without']; | |
var oldMap = _.map; | |
for (var _i = 0; _i < koFriendly.length; _i++) { | |
(function(fnName) { | |
var originalFn = _[fnName]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(ko){ | |
ko.ViewModel = function ViewModel(){ | |
Object.getOwnPropertyNames(this) | |
.map(name => ({ | |
name, | |
desc: Object.getOwnPropertyDescriptor(this, name) | |
})) | |
.filter(o => o.desc.configurable) | |
.forEach(o => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Audio; | |
using Microsoft.Xna.Framework.Content; | |
using Microsoft.Xna.Framework.GamerServices; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; | |
using Microsoft.Xna.Framework.Media; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="addSpeaker"> | |
<fieldset> | |
<legend>Speaker Info</legend> | |
Name: <input type="text" id="name" /> <br /> | |
Bio: <textarea id="bio"></textarea> <br /> | |
Twitter Handle: <input type="text" id="twitterHandle" /> <br /> | |
State: <input type="text" id="state" /> <br /> | |
Photo Url: <input type="text" id="photoUrl" /> | |
</fieldset> | |
<fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Subject: Complex object with set of properties and inner objectss | |
// Mission: Describe fluent DSL to define scheme and delegate action execution | |
// | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Text.RegularExpressions; |
OlderNewer