Skip to content

Instantly share code, notes, and snippets.

View bsakhanov's full-sized avatar
😎

Beibit Sakhanov bsakhanov

😎
View GitHub Profile
@bsakhanov
bsakhanov / animals-tree-list.markdown
Created January 24, 2019 12:53
animals! -- Tree list
@bsakhanov
bsakhanov / index.html
Created January 24, 2019 13:19
Vertical tree table, organization structure
<ul class="treeCSS">
<li><b>Руководитель</b>
<ul>
<li>1-й Заместитель </br>руководителя
<ul>
<li>Директор </br>1-го департамента
<ul>
<li>начальник </br>1-го отдела
<li>начальник </br>2-го отдела
<li>начальник </br>3-го отдела
@bsakhanov
bsakhanov / horizontal-tree-table-organization-structure-2.markdown
Created January 24, 2019 13:32
Horizontal tree table, organization structure-2
@bsakhanov
bsakhanov / index.html
Created January 24, 2019 16:01
Pixelization with SVG Filter
<!-- Inspired by https://codepen.io/eeeps/pen/dqepQm -->
<svg viewBox="0 0 800 532">
<filter id="pixels" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-color="green" flood-opacity="1" x="0" y="0" width="1" height="1" result="flood"/>
<feComposite
id="composite"
in="SourceAlpha" in2="flood" operator="in" x="0" y="0" width="6" height="6" result="composite"/>
<feTile x="0" y="0" width="1000" height="1000" in="composite" result="tile1"/>
<feComposite in="SourceGraphic" in2="tile1" operator="in" result="composite1"/>
@bsakhanov
bsakhanov / first-letter-uikit-3.markdown
Created January 28, 2019 03:28
First-letter, Uikit 3
@bsakhanov
bsakhanov / codepen-challenge-color-pop.markdown
Created January 28, 2019 10:32
CodePen Challenge: Color Pop

CodePen Challenge: Color Pop

Using animated svg filters and css blend modes to create a distortion effect on a photo.

Btw, don't pay too much attention to the text. I don't speak Khmer, I just think it looks neat.

Also, this does work in Chrome 71 and Firefox Dev Edition 66 on Mac but does not work on any mobile browser I've checked.

A Pen by Beibit Sakhanov on CodePen.

<canvas id="canvas"></canvas>
@bsakhanov
bsakhanov / index.html
Created January 30, 2019 12:10
Responsive Portfolio with UIkit 2
<nav data-uk-sticky id="items" class="uk-navbar">
<label class="uk-navbar-content uk-hidden-small">Filter:</label>
<ul class="uk-navbar-nav uk-hidden-small">
<li data-uk-filter="" class="uk-active"><a href="#">ALL</a></li>
<li data-uk-filter="blue"><a href="#">BLUE</a></li>
<li data-uk-filter="green"><a href="#">GREEN</a></li>
</ul>
<label class="uk-navbar-content uk-hidden-small">Sort:</label>
<ul class="uk-navbar-nav uk-hidden-small">
@bsakhanov
bsakhanov / index.pug
Created January 30, 2019 12:13
Responsive Menu UiKit 3
doctype html
//- logo
- var logo_white="http://blog.codepen.io/wp-content/uploads/2012/06/Button-Fill-White-Large.png"
.uk-offcanvas-content
// menu position. delete .uk-light to change black navbar to white (also you should change logo to dark one)
//- https://getuikit.com/docs/sticky#responsive
nav.uk-navbar-container.uk-light(uk-navbar="mode: click" uk-sticky="animation: uk-animation-slide-top; show-on-up: true")
// logo or title