Skip to content

Instantly share code, notes, and snippets.

View klivak's full-sized avatar
🖖
Just doing it! (◕‿◕)

klivak

🖖
Just doing it! (◕‿◕)
  • Kyiv, Ukraine
View GitHub Profile
@klivak
klivak / index.vue
Created March 16, 2020 12:47
Vue nice animation toggle
<template>
<transition name="flip" mode="out-in">
<slot v-if="!isShowing"></slot>
<img v-else src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/28963/cartoonvideo14.jpeg" />
</transition>
</template>
<template>
<div class="page-cart cart-popup">
<div ref="cartPopUp" class="cart-popup-container"
:class="{'active': isOpen}">
<div @click="togglePopUpDisplay"
class="button-toggle">
<div class="toggle-icon"></div>
</div>
<div class="popup-info">
@klivak
klivak / index.js
Created November 14, 2018 13:00
IE error for promises (is undefined)
<script>
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
var trident = ua.indexOf('Trident/');
var edge = ua.indexOf('Edge/');
if ((msie > 0) || (trident > 0) || (edge > 0)) {
var blueBird = document.createElement('script');