Skip to content

Instantly share code, notes, and snippets.

@spinlock99
Last active December 17, 2015 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spinlock99/9c5f0ade3b4b1c76c465 to your computer and use it in GitHub Desktop.
Save spinlock99/9c5f0ade3b4b1c76c465 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
<h1>Welcome to Position Sticky</h1>
<br>
<br>
<div style="overflow: auto; height:500px; border:solid;">
<div style="height: 5000px; border:solid;">
<div style="position:-webkit-sticky; top:3px; border:solid;">
<h4>Make me sticky.</h4>
</div>
</div>
</div>
<br>
<br>
{
"version": "0.4.17",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.2.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.2.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment