Skip to content

Instantly share code, notes, and snippets.

View lazyTai's full-sized avatar

刘明泰 lazyTai

View GitHub Profile
@lazyTai
lazyTai / add.css
Created September 22, 2017 02:12
all width heigth 100%
.page_add {
width: 100%;
height: 100%;
background: #eee;
}
@lazyTai
lazyTai / 作文
Created September 22, 2017 03:56
心情很沉重的说
为什么
其实就是害怕
为什么害怕呢
因为怕做不好
做不好什么呢
我就是失败的人生吧
所以要加油啊
其实你是厉害的哦
没有人可以让我放弃努力的
import React from 'react'
import {Motion, spring} from 'react-motion'
import './css/demo1.css'
export default class Demo1 extends React.Component {
constructor(props) {
super(props)
this.state = {
open: false
}
}
@lazyTai
lazyTai / 来至地狱
Created September 22, 2017 22:31
北京时间06点30分35秒
我的 屁股是酸疼的
好像 血液就要不流通
我的 命是搞笑的
也许 不应该又恨
只是 迷茫
发什么 神经
我 就啊神经病
还有 白痴
姐姐 要结婚了
我 还没听女朋友
@lazyTai
lazyTai / home.js
Created September 23, 2017 02:30
ract-router2 nest router
import React from 'react'
import {Link } from 'react-router'
export default class Home extends React.Component {
render() {
return <div>
<Link to="/">home</Link>
<Link to="/home1">home1</Link>
<Link to="/home2">home2</Link>
@lazyTai
lazyTai / index.js
Created September 23, 2017 21:15
sprng move
let React = require('react');
/* Block position and velocity. */
var block = {
x: 100,
v: 0,
destX: 120,
y: 50,
destY: 100,
@lazyTai
lazyTai / index.html
Created September 24, 2017 01:44
requestAnimationFrame‘
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>requestAnimationFrame</title>
</head>
<body>
<style>
@lazyTai
lazyTai / animatioonDemo.js
Created September 24, 2017 01:50
demo requestAnimationFrame
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function () {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@lazyTai
lazyTai / index.html
Created September 24, 2017 02:16
requestAnimationFrame demo
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>requestAnimationFrame</title>
</head>
<body>
<style>
@lazyTai
lazyTai / mytest1.js
Created September 25, 2017 02:52
mouse move the circle springmove
/*
*
刘明泰
mail:1352983234@qq.com
github:lazyTai
*/
import React from 'react';
import {Motion, spring} from 'react-motion';
import './css.css'