Increase size of floating coin eyecandy
This commit is contained in:
parent
d9645d990c
commit
1dbd9c887a
@ -4,6 +4,7 @@
|
|||||||
horizontal: true,
|
horizontal: true,
|
||||||
vertical: true,
|
vertical: true,
|
||||||
speed: 100, // In pixels per second
|
speed: 100, // In pixels per second
|
||||||
|
color: "#00ffff",
|
||||||
container: $(this).parent(),
|
container: $(this).parent(),
|
||||||
bumpEdge: function () {}
|
bumpEdge: function () {}
|
||||||
}, options);
|
}, options);
|
||||||
@ -65,11 +66,30 @@
|
|||||||
|
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
|
|
||||||
|
$('.eyecandy').on( "click", function() {
|
||||||
|
$(this).toggleClass("clicked");
|
||||||
|
// $(this).marqueeify({
|
||||||
|
// speed: Math.random()*420,
|
||||||
|
// bumpEdge: function () {
|
||||||
|
// var newColor = "hsl(" + Math.floor(Math.random()*360) + ", 100%, 50%)";
|
||||||
|
// $('.marquee').css('background', newColor);
|
||||||
|
// $(this)[0].speed = Math.random()*420;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
} );
|
||||||
|
|
||||||
$('.eyecandy').marqueeify({
|
$('.eyecandy').marqueeify({
|
||||||
speed: 300,
|
speed: 300,
|
||||||
|
self: this,
|
||||||
bumpEdge: function () {
|
bumpEdge: function () {
|
||||||
var newColor = "hsl(" + Math.floor(Math.random()*360) + ", 100%, 50%)";
|
// svg bgcolor
|
||||||
$('.marquee').css('background', newColor);
|
// var newColor = "hsl(" + Math.floor(Math.random()*360) + ", 100%, 50%)";
|
||||||
|
var newColor = Math.floor(Math.random()*16777215).toString(16);
|
||||||
|
// console.log($(this)[0].self);
|
||||||
|
console.log($(this)[0].color);
|
||||||
|
console.log($(this)[0].self);
|
||||||
|
// .css("background-color", "#" + newColor);
|
||||||
|
//.css("background-color", "#00ffff");
|
||||||
$(this)[0].speed = Math.random()*420;
|
$(this)[0].speed = Math.random()*420;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -107,6 +107,12 @@ header
|
|||||||
left: 0
|
left: 0
|
||||||
position: absolute
|
position: absolute
|
||||||
top: 0
|
top: 0
|
||||||
|
// background-color: hotpink
|
||||||
|
img
|
||||||
|
width: 64px
|
||||||
|
&.clicked
|
||||||
|
// box-shadow: 1px 1px 4px 4px hotpink
|
||||||
|
border-radius: 300px
|
||||||
|
|
||||||
|
|
||||||
li
|
li
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user