Skip to content

Instantly share code, notes, and snippets.

View dziamid's full-sized avatar
🏠
Live in Tbilisi, Georgia

Dziamid dziamid

🏠
Live in Tbilisi, Georgia
View GitHub Profile
@dziamid
dziamid / README.md
Created May 24, 2016 11:27 — forked from hsablonniere/README.md
scrollIntoViewIfNeeded 4 everyone!!!

scrollIntoViewIfNeeded 4 everyone!!!

This gist provides a simple JavaScript implementation of the non-standard WebKit method scrollIntoViewIfNeeded that can be called on DOM elements.

Usage

Just use the code in index.js in your app or website. You can see usage in the test page test.html.

The parent element will only scroll if the element being called is out of the view. The boolean can force the element to be centered in the scrolling area.

var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')
@dziamid
dziamid / SketchSystems.spec
Created September 8, 2018 16:50 — forked from lynaghk/SketchSystems.spec
Search Bar*
Search Bar*
Inactive*
focused -> Active
Active
canceled -> Inactive
typed -> Text Entry
Empty*
@dziamid
dziamid / SketchSystems.spec
Last active September 8, 2018 17:29 — forked from lynaghk/SketchSystems.spec
Egg Timer*
Egg Timer*
Stopped*
wind forward -> Time over 10sec?
Ticking
wind forward -> Ticking
wind backward -> Done?
tick -> Done?
Dinging