Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

Latest commit

 

History

History
19 lines (15 loc) · 652 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 652 Bytes

Content 🔀

Using this Javascript class you can switch the Content of a Span, Div or really anything.

Example

If you add the Following to an Website with the Javascript file, it will switch the text with one, two, three, four.

All Elements with the Class of testingSwitch will be updated.

  <span class="testingSwitch"></span><br>
  <span class="testingSwitch"></span><br>
  <span class="testingSwitch"></span><br>
  <span class="testingSwitch"></span><br>
  var Testing = new contentSwitcher("testingSwitch", 800, ["one", "two", "three", "four" ] );
  Testing.startSwitching();