r/reddithax • u/stock_character • Sep 25 '14
Editing RES Konami Code Bacon
If you have RES and do the konami code, ↑ ↑ ↓ ↓ ← → ← → b a enter, you get flying bacon.
You add your own picture with
#baconBit {
position: fixed;
width: 300px;
height: 60px;
background-image: url(%%YOURIMAGE%%);and slow it down with
-webkit-transition: all 5s linear !important;
-moz-transition: all 5s linear !important;
-o-transition: all 5s linear !important;
-ms-transition: all 5s linear !important;
}Anyone know how to change its direction, make it stop, or just keeping it still?
2
u/Berz3rk3r Sep 25 '14
The plugin requires a change in javascript not css to cause different animations
2
u/flashmedallion Nov 09 '14
You can change the direction of the translation, and it's rotation, but that's all.
I've done it on /r/metalgearsolid.
#baconBit { -webkit-transition:all 3s linear; -moz-transition:all 3s linear; -o-transition:all 3s linear; -ms-transition:all 3s linear; transition:all 3s linear; background-image:url(%%fulgoat%%); position:fixed; width:100px; height:120px; } #baconBit.makeitrain { top:100%; left:200%; -webkit-transform:rotate(100deg); transform:rotate(100deg); }
2
u/saltrix Feb 25 '15 edited Feb 25 '15
This seems to work in chrome but not in firefox?
edit:
using
#baconBit {
position: fixed !important;
width: 300px !important;
height: 60px !important;
background-image: url(%%YOURIMAGE%%) !important;ended up fixing it for me. Just have to add the important tags
1
u/erktheerk Oct 08 '14
Thanks. Added this to /r/rainbowbar
3
1
2
u/CHEEZYSPAM Sep 25 '14
Tried adding my own picture, but it isn't working... still shows bacon? Is it actually possible to customize this?