Skip to content

Instantly share code, notes, and snippets.

View stanwmusic's full-sized avatar
🏠
Working from home

Stan Williams stanwmusic

🏠
Working from home
View GitHub Profile
@stanwmusic
stanwmusic / index.html
Created February 10, 2022 07:14
Single Page Site with Pushing Content
<header>
<form id="search">
<input id="search-box" type="search" placeholder="Find something...">
<input id="search-btn" type="submit" value="Search">
</form>
<nav>
<ul>
<li class="current">
<a href="#home">Home</a>
</li>

Analog Clock

For this analog clock, I used JavaScript only for getting the current time at load then used CSS animation to run the clock from there.

A Pen by Stan Williams on CodePen.

License.

@stanwmusic
stanwmusic / index.html
Created February 10, 2022 00:36
Responsive Navigation Concept
<nav>
<ul>
<li>
<a href="#">
<!-- SVG code for Home icon -->
<svg class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<polygon fill="#fff" points="15,0 0,10.5 4.5,10.5 4.5,30 11.35,30 11.352,17.626 18.55,17.609 18.55,30 25.5,30 25.5,10.5
30,10.5 "/>
</svg>
@stanwmusic
stanwmusic / index.html
Created February 10, 2022 00:35
iOS-Like Digital Clock
<div class="time">
<span class="hms"></span>
<span class="ampm"></span>
<br>
<span class="date"></span>
</div>
@stanwmusic
stanwmusic / angularjs-contact-form.markdown
Created February 10, 2022 00:21
AngularJS Contact Form
@stanwmusic
stanwmusic / index.html
Created February 10, 2022 00:18
Moving Oriental Flower Pattern
<div class="quadrant">
<div class="pattern"></div>
</div>
<div class="quadrant">
<div class="pattern"></div>
</div>
<div class="quadrant">
<div class="pattern"></div>
</div>
<div class="quadrant">
@stanwmusic
stanwmusic / index.pug
Created February 10, 2022 00:16
Typing Speedometer
- var ticks = 120;
- var tickLabels = 12;
- var tickInc = ticks / tickLabels;
main
.speedometer
.speedometer-inner
- for (var i = 0; i < ticks + 1; ++i) {
.tick
- for (var j = 0; j <= tickLabels; ++j) {
- if (i == tickInc * j) {
@stanwmusic
stanwmusic / index.pug
Created February 10, 2022 00:07
Native App-Like Mobile Site Concept
.app
.no-int
nav
button(tabindex="0",data-home)
.btn-cnt(tabindex="-1")
svg(class="icon",xmlns="http://www.w3.org/2000/svg",viewBox="0 0 32 32",x="0px",y="0px")
g
polygon(points="16,2 2,12 2,30 30,30 30,12 16,2")
span="Home"
@stanwmusic
stanwmusic / 3d-ish-hamburger-menu.markdown
Created February 9, 2022 19:49
3D-ish Hamburger Menu

3D-ish Hamburger Menu

A hamburger menu that reveals its contents in a 3D-like way. Also designed to look like a real hamburger!

Update 6/4/19: Sass refactored

A Pen by Jon Kantner on CodePen.

License.