Coder Social home page Coder Social logo

postcss-trolling's Introduction

PostCSS Trolling Build Status

PostCSS plugin to increase the productivity of your co-workers :trollface:.

Usage

postcss([ require('postcss-trolling') ])

See PostCSS docs for examples for your environment.

Options

blurBlink

Blur the website for a split second

  • Default:
trolling({
  blurBlink: {
    time: '20s'
  }
});
/* output */
body {
    animation: blurBlink 20s infinite;
}
@keyframes blurBlink {
    0% {
        filter: blur(0px)
    }
    49% {
        filter: blur(0px)
    }
    50% {
        filter: blur(1px)
    }
    51% {
        filter: blur(0px)
    }
    100% {
        filter: blur(0px)
    }
}

blink

comicSans

The best font ever for the web

  • Default:
trolling({
  comicSans: true
});
/* output */
* {
    font-family: 'Comic Sans MS', cursive !important;
}

slowlyGrowText

Slowly grow text

  • Default:
trolling({
  slowlyGrowText: {
    time: '120s',
    maxFontSize: '80pt'
  }
});
/* output */
p {
    animation: slowlyGrowText 120s ease-in;
}
@keyframes slowlyGrowText {
    0% {
        font-size: none;
    }
    100% {
        font-size: 80pt;
    }
}

text-grow

rotate

Rotate the website

  • Default:
trolling({
  rotate: {
    deg: 0.2
  }
});
/* output */
body {
    transform: rotate(0.2deg);
    overflow-x: hidden;
}

blur

Blur everything!

  • Default:
trolling({
  blur: {
    time: '120s',
    blur: '0.8px'
  }
});
/* output */
body {
    animation: blur 120s infinite;
}
@keyframes blur {
    0% {
        filter: blur(0px);
    }
    100% {
        filter: blur(0.8px);
    }
}

blur

roulette

Moves the specified number of properties into other (random) elements

  • Default:
trolling({
  roulette: 1
});
.selector1 {
   width: 100%;
}

.selector2 {
   height: 100%;
}

.selector3 {
   display: block;
}

// (random) output -->

```css
.selector1 {
   height: 100%;
}

.selector2 {
  display: block;
}

.selector3 {
  width: 100%;
}

hideOdd

Hide every odd paragraph element

  • Default:
trolling({
  hideOdd: true
});
/* output */
p:nth-child(odd) {
    display: none;
}

wait

Permanent cursor wait

  • Default:
trolling({
  wait: true
});
/* output */
html {
    cursor: wait !important;
}

hideCursor

Hide cursor

  • Default:
trolling({
  hideCursor: true
});
/* output */
html {
    cursor: none !important;
}

ren

rem is a band of course

.selector {
   width: 10rem;
}

// output -->

.selector {
  width: 10ren;
}
  • Default:
trolling({
  ren: true
});

ms

microsoft doesn't have a browser...

.selector {
   -ms-flex: 1;
}

// output -->

.selector {
  flex: 1;
}
  • Default:
trolling({
  ms: true
});

heigth

Fix typo heigth

.selector {
   height: 10px;
}

// output -->

.selector {
  heigth: 10px;
}
  • Default:
trolling({
  heigth: true
});

aling

aling...

.selector {
   align-content: center;
}

// output -->

.selector {
  aling-content: center;
}
  • Default:
trolling({
  aling: true
});

clearfix

fix clearfix

.clearfix:after { }

// output -->

.clearfix:before { }
  • Default:
trolling({
  clearfix: true
});

veryImportant

Makes everything very important...

.selector {
  float: left !important;
}

// output -->

.selector {
  float: left !!important;
}
  • Default:
trolling({
  veryImportant: true
});

zIndex

.selector {
  z-index: 99999;
}

// output -->

.selector {
  z-index: 0;
}
  • Default:
trolling({
  zIndex: true
});

All defaults

trolling({
  aling: true,
  blur: {
    time: '120s',
    blur: '0.8px'
  },
  blurBlink: {
    time: '20s'
  },
  clearfix: true,
  comicSans: true,
  heigth: true,
  hideCursor: true,
  hideOdd: true,
  ms: true,
  ren: true,
  rotate: {
    deg: 0.2
  },
  roulette: 1,
  slowlyGrowText: {
    time: '120s',
    maxFontSize: '80pt'
  },
  veryImportant: true,
  wait: true,
  zIndex: true
});

// disabled
trolling({
    aling: false,
    blur: false,
    blurBlink: false,
    clearfix: false,
    comicSans: false,
    heigth: false,
    hideCursor: false,
    hideOdd: false,
    ms: false,
    ren: false,
    rotate: false,
    roulette: false,
    slowlyGrowText: false,
    verImportant: false,
    wait: false,
    zIndex: false
})

Thanks

This plugin is based on aprilFools.css

postcss-trolling's People

Contributors

juanfran avatar whackashoe avatar

Stargazers

Federico avatar Robin Ury avatar David Engaus avatar Olava Faksdal avatar Ksenia Subbotina avatar  avatar Tu Nguyen avatar blaiseludvig avatar Mulverine avatar Thomas Tuvignon avatar Ayush Kumar avatar Alijk avatar Eliaz Bobadilla avatar Roman Basharin avatar Meadowsys avatar Vladimir avatar Nikita Putilin avatar  avatar  avatar Anton Zavodchikov avatar Aleksandr  avatar Alex Bespoyasov avatar Bence Lang avatar Diogo Korok avatar  avatar Sunny avatar Sergei ZH avatar Ilya Agapov avatar Glafira Churilovich avatar Eugene Metagnostic avatar Vitalii Bobrov avatar Sergey Bekharsky avatar Mark N. avatar Emily avatar  avatar  avatar Jihwan Kyle Kim avatar hayoung kim avatar  avatar Enzo Eghermanne avatar Kamil avatar Dmytro Meleshko avatar Ege Esin avatar Sam Cosgrove avatar J Garcia avatar Cellularhacker avatar J avatar  avatar Khaled Fathy avatar Cristina Fernández Sanz avatar Denis Denisov avatar Dave Lunny avatar Jongbin Park avatar Thomas avatar  avatar Sebastian Wachter avatar Filip Weiss avatar  avatar  avatar Josh avatar Nikolay Gromov avatar  avatar Mattias Andersson avatar Juan del Río Pacheco avatar  avatar Haroen Viaene avatar Oleg Solomko avatar Rafael Violato avatar Alexandre Nicastro avatar Victor Perin avatar Victor Miguez avatar Joan León avatar Benjamin Nådland avatar Yura Trambitckii avatar Jiahao Guo avatar Kevin Smets avatar Daryll Jann avatar Johann Barnard avatar  avatar Arnaud Grausem avatar Ng Manh avatar Valentin Semirulnik avatar  avatar Raymundo Rabago avatar Vikrant Negi avatar Fabien Motte avatar Dmitry avatar Adrian D. Alvarez avatar Allan Crisostomo avatar  avatar Lucas avatar  avatar Juani Brex avatar Jakub Korzeniowski avatar Li Jie avatar Marko Grešak avatar Tommy Chen avatar Lance He avatar Mike Thompson avatar Hsin-lin Cheng avatar

Watchers

Jakub Korzeniowski avatar James Cloos avatar  avatar Jörn Ruhlender avatar  avatar  avatar

postcss-trolling's Issues

More examples

You need more input/output or screenshots examples.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.