Skip to content

Instantly share code, notes, and snippets.

View blakazulu's full-sized avatar

Liraz Amir blakazulu

View GitHub Profile
@blakazulu
blakazulu / type-delete.component.css
Last active November 3, 2020 18:18
type-delete - medium demo
.blink {
border-right-style: solid;
animation: 1s blink infinity;
}
@keyframes blink {
to {
opacity: 0;
}
}
@blakazulu
blakazulu / type-delete.component.html
Created November 3, 2020 18:23
type-delete - medium demo
<div>
<span #textElement class="text"></span>
<span #blinkElement class="text blink"></span>
</div>
@blakazulu
blakazulu / type-delete.component.ts
Last active November 3, 2020 18:26
type-delete - medium demo
import {
AfterViewInit, Component, ElementRef, Input, Renderer2, ViewChild
} from "@angular/core";
@Component({
selector: "app-type-delete",
templateUrl: "./type-delete.component.html",
styleUrls: ["./type-delete.component.css"]
})
export class TypeDeleteComponent implements AfterViewInit {
@blakazulu
blakazulu / app.module.ts
Created November 4, 2020 20:39
medium-text-bg-animation-demo
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "./app.component";
import { BubblingTextDirective } from "./bubbling-text.directive";
@NgModule({
imports: [BrowserModule],
declarations: [AppComponent, BubblingTextDirective],
bootstrap: [AppComponent]
@blakazulu
blakazulu / style.css
Last active November 12, 2020 07:20
medium-text-bg-animation-demo
body {
background-color: #2b2c34;
}
.animated-text {
font-family: "VT323", monospace, sans-serif;
text-shadow: 0 0 1px #ffffff;
position: fixed;
bottom: -100vh;
user-select: none;
@blakazulu
blakazulu / bubbling-text.directive.ts
Last active November 4, 2020 22:36
medium-text-bg-animation-demo
import {AfterViewInit, Directive, ElementRef, Input, Renderer2} from '@angular/core';
@Directive({
selector: '[sbzTextAnimation]'
})
export class NgxSbzTextAnimationDirective implements AfterViewInit {
@Input() maxFontSize = 20;
@Input() colorSchemeArray: string[];
@Input() position: 'left' | 'right' = 'right';
@Input() percentOfScreen = 30;
@blakazulu
blakazulu / style.css
Created November 4, 2020 22:51
medium-text-bg-animation rain
@keyframes float-animation {
0% {
bottom: 100vh;
opacity: 0;
}
25% {
opacity: 1;
}
50% {
opacity: 1;
@blakazulu
blakazulu / app.module.ts
Created November 16, 2020 09:11
medium-better-login-page-demo
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatInputModule } from "@angular/material/input";
import { FormsModule } from '@angular/forms';
@NgModule({
@blakazulu
blakazulu / app.component.html
Last active November 16, 2020 13:55
medium-better-login-page-demo
<section class="flex">
<section>
<h1>This is an Input Eye Trace animation for login</h1>
</section>
<section class="svg-container">
<svg #svgEye width="200" viewBox="0 0 911 654" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="undraw_Surveillance_re_8tkl 1">
<path id="eyeball"
@blakazulu
blakazulu / app.component.scss
Created November 16, 2020 10:19
medium-better-login-page-demo
.flex {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
.form-field {
width: 200px;
}