From 2e83719831d6ef385deaebc0b0faefcdcbe48b62 Mon Sep 17 00:00:00 2001 From: Manuel Schmalstieg Date: Fri, 22 Sep 2017 14:20:41 +0200 Subject: [PATCH] essai avec Animation CSS --- index-cercle.html | 135 ++++++++++++++++++++++++++++++++-------------- js/clocks.js | 39 ++++++++++++-- 2 files changed, 129 insertions(+), 45 deletions(-) diff --git a/index-cercle.html b/index-cercle.html index 3c560d0..c8ee724 100644 --- a/index-cercle.html +++ b/index-cercle.html @@ -5,52 +5,107 @@ The JS Clocks - - - - - - - - - - - - - - - - - + + + + + + + + + + + diff --git a/js/clocks.js b/js/clocks.js index 6e5ef42..fc4d1cf 100755 --- a/js/clocks.js +++ b/js/clocks.js @@ -6,16 +6,42 @@ * Auteur: Mikael Elmblad, tcip.se */ -//afficher une alerte hello world -alert("hello world"); -//afficher un message dans le console -console.log("bonjour"); // répéter la fonction metronone une fois par seconde var myVar = setInterval(function() { metronome(); }, 1000); +// coloriser un élément SVG + +// paramètres SVG: +// stroke-width +// stroke + +// document.getElementById("seconde").style.stroke = '#00ff00'; + +document.querySelector("#seconde").style.stroke = '#00ffff'; +document.querySelector("#seconde").style.strokeWidth = 3; +// document.querySelector("#seconde").style.transform = 'translate(0,-20%) rotate(-3deg)'; +// document.getElementById("seconde").style.display = 'none'; +// Changer la position: + +// Cloner un élément: + +// Get the last
  • element ("Milk") of