From 264cdffad09d06d82204b26b168dbc4946189090 Mon Sep 17 00:00:00 2001 From: Renard Date: Sat, 28 Sep 2019 14:54:31 -0300 Subject: Nuevo logo --- src/Home.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/Home.js') diff --git a/src/Home.js b/src/Home.js index 858ce0f..6b2e385 100644 --- a/src/Home.js +++ b/src/Home.js @@ -22,6 +22,8 @@ class Home extends Component { this.notificationSound = new Audio( "https://bienvenidoainternet.org/msn.ogg" ); + this.handeMouseMove = this.handeMouseMove.bind(this); + this.mouseVars = {}; } componentDidMount() { @@ -59,6 +61,14 @@ class Home extends Component { }); }); window.scrollTo(0, 0); + window.addEventListener("mousemove", this.handeMouseMove); + } + + handeMouseMove(e) { + let traX = (4 * e.pageX) / 480; + let traY = (4 * e.pageY) / 250; + document.getElementById("baiLogo").style.backgroundPosition = + traX + "%" + traY + "%"; } componentWillUnmount() { @@ -121,11 +131,9 @@ class Home extends Component { > - +

Resistiendo desde el 2010
-- cgit v1.2.1-18-gbd029