Skip to content

Instantly share code, notes, and snippets.

@TrueSlu
TrueSlu / index.html
Created August 25, 2018 05:29
typing text transition
<p id="offscreen-text" class="offscreen-text"></p>
<p id="text" class="text"></p>
<svg id="svg">
</svg>
<input type="text" class="input", id="input" />
@TrueSlu
TrueSlu / how-do-i-get-a-custom-colored-underline-that-will-span-multiple-lines.markdown
Created August 25, 2018 05:29
How do I get a custom colored underline that will span multiple lines?

How do I get a custom colored underline that will span multiple lines?

First in series of pens where I just want to make a library of useful tricks I have used for websites. In this one the key trick is multiline underline with any color I want. This is show using a random gradient so I could practice some more javascript.

A Pen by Will King on CodePen.

License.

@TrueSlu
TrueSlu / gradient-buttons-with-background-color-change-css-only.markdown
Created August 25, 2018 05:29
Gradient Buttons with Background-Color Change (CSS-only)

Gradient Buttons with Background-Color Change (CSS-only)

Everyone likes Gradients. A selection of Gradient Buttons that change the Background Color when Hovering. The direction can be set in the CSS (see comment or check the JS-Panel for Instruction)

A Pen by MrPirrera on CodePen.

License.

@TrueSlu
TrueSlu / css-particle-effects.markdown
Last active August 28, 2018 00:33
CSS Particle Effects

CSS Particle Effects

Using JavaScript to generate the particles but leaving the motions to CSS.

Open to suggestions.

A Pen by Zed Dash on CodePen.

License.

@TrueSlu
TrueSlu / index.html
Created August 25, 2018 23:47
Preloading animation with velocity.js and CSS3 transitions
<!-- Page preloader -->
<div id="hola">
<div id="preloader">
<span></span>
<span></span>
</div>
</div>
<!-- Start content -->
<div class="page-wrap">
@TrueSlu
TrueSlu / index.html
Created August 26, 2018 22:05
Social media panel
<head>
<title>Media panel</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<div class="social">
<h2>Social Media</h2>
<button class="icon-btn twitter">
@TrueSlu
TrueSlu / index.html
Created August 27, 2018 04:03
Minimal Search Bar
<main>
<input type="text" class="search" />
<div class="line-1"></div>
<div class="line-2"></div>
</main>
@TrueSlu
TrueSlu / fancy-search-box-svg-css-jquery.markdown
Created August 27, 2018 04:08
Fancy Search Box // SVG + CSS + jQuery

Fancy Search Box // SVG + CSS + jQuery

Simple animations using CSS and stroke-dashoffset! Enjoy

A Pen by TrueSlu on CodePen.

License.

@TrueSlu
TrueSlu / css-only-sliding-panels-using-transforms.markdown
Created August 27, 2018 05:55
CSS-only Sliding Panels using transforms

CSS-only Sliding Panels using transforms

Sliding panels around to give greater emphasis to the active panel. Uses only CSS :hover states with transform/opacity transitions for maximum performance.

Responsively switches to a stacked layout on smaller screens, or by using the .panels--stacked class

A Pen by Shaw on CodePen.

License.