Skip to content

Instantly share code, notes, and snippets.

View Slinjez's full-sized avatar
🌴
On vacation

Mwangi Thiga Slinjez

🌴
On vacation
View GitHub Profile
@Slinjez
Slinjez / in-out-of-focus-text-effect.markdown
Created April 21, 2024 13:26
In/out of focus text effect
@Slinjez
Slinjez / functioning-analog-clock.markdown
Created February 11, 2023 08:26
Functioning Analog Clock

Functioning Analog Clock

A fun little CSS and JavaScript clock that tells you the current time.

A Pen by Ian on CodePen.

License.

@Slinjez
Slinjez / index.html
Created February 11, 2023 08:00
Vue Time Comparison
<div id="app">
<svg class="dial" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="150 0 350 600">
<defs>
<clipPath id="clip-path">
<path fill="none" d="M27.7.3h331.7v332.32H27.7z"/>
</clipPath>
<clipPath id="clip-path-2">
<path fill="none" clip-path="url(#clip-path)" d="M28.4.9h.6l-.6.7V.9z"/>
</clipPath>
<clipPath id="clip-path-3">
@Slinjez
Slinjez / index.pug
Created October 24, 2021 10:17
Responsive infographic/ CSS variables, grid layout
- var data = [
- {
- slist: ['329, 100%, 70%', '337, 99%, 58%'],
- icon: '🍓',
- title: 'gingerbread',
- ptext: 'Cake muffin donut chocolate cake jelly sesame wafer tart pie muffin.'
- },
- {
- slist: ['48, 99%, 58%', '33, 94%, 55%'],
- icon: '🍋',
@Slinjez
Slinjez / index.html
Created March 5, 2020 08:31
paper text 2
<textarea>This is the first line.
See, how the text fits here, also if there is a linebreak at the end? It works nicely.
Great.
</textarea>
@Slinjez
Slinjez / css-goey-footer.markdown
Last active February 17, 2020 13:32
CSS Goey footer
@Slinjez
Slinjez / script.babel
Created January 28, 2020 08:01
todo list app with ES6
class Todo {
constructor({
title = "Todo App",
data = [],
onAdded = () => {},
onDeleted = () => {},
onStatusChanged = () => {}
} = {}) {
this.nodes = {};
this.title = title;
@Slinjez
Slinjez / index.html
Last active January 28, 2020 07:56
Portfolio - Type help
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column is-3 is-flex">
<div class="column-child sidebar shadow">
<div class="sidebar-header has-text-centered">
<div class="photo"><img src="https://instagram.fdel25-1.fna.fbcdn.net/vp/5dcd7fd07ce899149702f81cd8155c23/5E6F9BC3/t51.2885-19/s150x150/71826152_1360562164120956_721707767340990464_n.jpg?_nc_ht=instagram.fdel25-1.fna.fbcdn.net" /></div>
<h2 class="header-name">Jatin Rao</h2>
<h5>Web Developer</h5>
@Slinjez
Slinjez / index.pug
Created January 28, 2020 07:40 — forked from oauo/index.pug
Footer blobs
div.main
div.footer
div.bubbles
- for (var i = 0; i < 128; i++) //Small numbers looks nice too
div.bubble(style=`--size:${2+Math.random()*4}rem; --distance:${6+Math.random()*4}rem; --position:${-5+Math.random()*110}%; --time:${2+Math.random()*2}s; --delay:${-1*(2+Math.random()*2)}s;`)
div.content
div
div
b Eldew
a(href="#") Secuce