Skip to content

Instantly share code, notes, and snippets.

@tupham81
tupham81 / fake-3d-image-three-js.markdown
Created June 15, 2022 23:17
Fake 3d Image - Three.js

Fake 3d Image - Three.js

Processing a depth map image together with a normal image using a fragment shader in order to make a fake 3d image with depth.

A Pen by Chris Johnson on CodePen.

License.

@tupham81
tupham81 / index.html
Created August 7, 2020 01:52
SVG Path Builder
<div
id="app"
class="ad-App">
</div>
@tupham81
tupham81 / daily-ui-016-pop-up-overlay.markdown
Created June 12, 2019 10:51
Daily UI #016 | Pop-up/Overlay

Daily UI #016 | Pop-up/Overlay

This is a popup overlay design for your portfolio! Display your projects/work in detail with a click of a button.

A Pen by Julie Park on CodePen.

License.

@tupham81
tupham81 / index.html
Created October 2, 2018 14:41
Slider
<div class="slider" data-state="0">
<svg id="prev" viewBox="0 0 31 101" version="1.1" class="pfeil prev left"><path d="M 0,0 30,50 0,100"></path></svg>
<svg id="next" viewBox="0 0 31 101" version="1.1" class="pfeil next left"><path d="M 0,0 30,50 0,100"></path></svg>
<div class="status">
<div class="stat" data-key="0"></div>
<div class="stat" data-key="1"></div>
<div class="stat" data-key="2"></div>
<div class="stat" data-key="3"></div>
@tupham81
tupham81 / fluid-grid-using-text-align-justify.markdown
Created August 14, 2018 19:07
Fluid Grid Using Text-align: Justify

Fluid Grid Using Text-align: Justify

A new technique for responsive grids I've been working on which uses inline-block and text-align: justify.

Take a look at this article for an explanation of the fundamentals of the technique:

http://www.barrelny.com/blog/text-align-justify-and-rwd/

Essentially, margins are calculated by the browser and never specified in the CSS. This saves a lot of tedious work! Also by not having to use floats, clearfixes, or nth-child, we avoid many common problems associated with more traditional methods.

@tupham81
tupham81 / create-qr-code.markdown
Last active July 31, 2018 05:14
Create QR Code
@tupham81
tupham81 / qr-code-generating-with-vanilla-js.markdown
Created July 26, 2018 16:47
QR code generating with vanilla js
@tupham81
tupham81 / index.html
Created July 25, 2018 13:13
JavaScript Stopwatch
<div class="wrapper">
<h1>Stopwatch</h1>
<h2>Vanilla JavaScript Stopwatch</h2>
<p><span id="seconds">00</span>:<span id="tens">00</span></p>
<button id="button-start">Start</button>
<button id="button-stop">Stop</button>
<button id="button-reset">Reset</button>
</div>
@tupham81
tupham81 / index.haml
Created June 9, 2018 08:43
Pure CSS Card UI
.card
%input#rad1{:checked => "checked", :name => "rad", :type => "radio"}/
%div{:for => "rad1"}
%h1 1
.btn
%input#rad2{:name => "rad", :type => "radio"}/
%div{:for => "rad2"}
%h1 2
.btn
%input#rad3{:name => "rad", :type => "radio"}/