Skip to content

Instantly share code, notes, and snippets.

View naturallucky's full-sized avatar

naturallucky naturallucky

View GitHub Profile
@naturallucky
naturallucky / dynamic-scroll-fix.css
Last active May 11, 2016 02:04
dynamic scroll css( fix version )
div.stage {
height: 600px;
/*background-position: 50% 50%;*/
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.content {
@naturallucky
naturallucky / dynamic-scroll-multiscroll.css
Last active May 11, 2016 02:18
dynamic multi parts scroll (essence)
*{
margin:0;
padding:0;
}
.stage{
perspective: 100px;
height:100vh;
@naturallucky
naturallucky / modal-dialog.css
Last active May 11, 2016 02:17
modal dialog css(essence)
.lap{
visibility: collapse;
}
.lap::target{
visibility: visible;
}
.lap::target .overlap{
opacity: 0.2;
transition: 1s;
}
@naturallucky
naturallucky / following-scroll-button.css
Created May 11, 2016 02:09
following scroll button css(essence)
.followcard {
position: fixed;
top: -2000px;
z-index: 999;
margin-left:16px;
padding:10px;
background:#7777ff;
border-radius: 8px;
@naturallucky
naturallucky / simple-card-layout.css
Last active May 11, 2016 02:13
simple card layout css (essence)
.card{
word-wrap:break-word;
float:left;
overflow: hidden;
width:120px;
height:200px;
margin:10px;
padding:10px;
background-color:#f5f5f5;
@naturallucky
naturallucky / opacity-overlap-label.css
Created May 11, 2016 02:15
opacity overlap label css(essence)
.base{
position:relative;
}
.base .overlapcaption{
position: absolute;
background-color: rgba( 222, 200, 200, 0.8 );
/*キャプションの形と位置*/
top: calc(100% - 12px);
top: -webkit-calc(100% - 12px);
@naturallucky
naturallucky / dinamic-menu-radio.css
Created May 11, 2016 02:20
dinamic menu (radio ver) css (essence)
tabs. * {
margin: 0;
padding: 0;
}
.tabs li{
float:left;
list-style: none;
}
.tabs{
position:relative;
@naturallucky
naturallucky / dinamic-menu-divalign.css
Created May 11, 2016 02:24
dinamic menu divalign css (essence)
.tabs .content {
display:none;
opacity :0.15;
background: #ffcccc;
transition: opacity 1s;
}
.tabs [id^="page"]:checked + label {
background: #ffeeee;
}
//60,67
//45 81
//32,95
private String convertCharPack(int value, int charnum , int base , int packsize){
int b;
char[] ret = new char[charnum];
for (int i = 0; i < charnum; i++) {
b = value % packsize;
ret[i] = (char)(b+base);
value = value / packsize;
function blinkMessageToNotify(message){
var msg = docId("message");
var delStrLen =msg.textContent.length;
msg.textContent = msg.textContent + message;
delStrLen = msg.textContent.length - delStrLen;//be care for emoji...
setTimeout(function(){
msg.textContent = msg.textContent.substr(delStrLen);
},12600);
}
function docId(idname){