Skip to content

Instantly share code, notes, and snippets.

@yusugomori
yusugomori / css3book.html
Last active October 6, 2015 03:28
CSS3 Book
<div id="css3book">
<div class="book-host">
<div class="book">
<div class="dummy">
<div class="book-cover"></div>
<div class="dummy-page" id="dummy-page0"></div>
<div class="dummy-page" id="dummy-page1"></div>
<div class="dummy-page" id="dummy-page2"></div>
<div class="dummy-page" id="dummy-page3"></div>
<div class="dummy-page" id="dummy-page4"></div>
body {
.danboard-host {
#danboard {
.material() {
.border-radius(3px);
.box-sizing(border-box);
position: absolute;
-webkit-transform-style: preserve-3d;
-webkit-transform-origin: left top 0;
text-align: center;
.danboard-host
#danboard
.face
.bottom
.right
.back
.left
.top
.cover
.line
@yusugomori
yusugomori / danboard.js.coffee
Created June 16, 2012 05:23
Danboard.coffee
class Danboard
constructor: (id) ->
$danboard = $(id)
baseRotateX = 60
baseRotateY = 150
baseRotateZ = -20
$(window).keydown (e) =>
if e.which is 37 # KEYLEFT
e.preventDefault()
@yusugomori
yusugomori / modal.html
Created July 4, 2012 16:23
ModalContainer
<div class="modal-container" id="modal_for_demo">
<div class="modal wide">
<div class="header">
<a href="#" class="close">&times;</a>
</div>
<div class="contents">
Contents in Modal
</div>
</div>
<div class="overlay"></div>
@yusugomori
yusugomori / modal.css
Created July 4, 2012 16:32
ModalContainer.css
.noscroll {
overflow: hidden !important;
}
.visible .overlay {
opacity: 0.8;
-moz-opacity: 0.8;
}
.overlay {
@yusugomori
yusugomori / modal.coffee
Created July 4, 2012 16:39
ModalContainer.coffee
class _Modal
show: (options={}) ->
return false unless options.modalContainerId?
$modalContainer = $(options.modalContainerId)
$modal = $modalContainer.children('.modal')
$close = $modal.find('.close')
$('html, body').addClass 'noscroll'
$modalContainer.css
@yusugomori
yusugomori / mother2.coffee
Created July 6, 2012 14:27
Mother2.coffee
class Mother2
constructor: (options={}) ->
id = options.id or '#mother2'
@cellSize = options.cellSize or 3
$id = $(id)
$id.css
position: 'relative'
render: (options={}) ->
return false unless options.arr
@yusugomori
yusugomori / index.html
Created August 19, 2012 06:53 — forked from piatra/index.html
Record stream from getUserMedia() stream
<!DOCTYPE HTML>
<html>
<head>
<title>Video recording demo</title>
<link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
@yusugomori
yusugomori / jFBMobileFeedPhoto.html
Created September 8, 2012 06:04
jFBMobileFeedPhoto.html
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jFBMobileFeedPhoto.js"></script>
<script type="text/javascript">
$(function(){
new jFBMobileFeedPhoto();
})
</script>
<div id="jFBMobileFeedPhoto">
<div>