Get started with sir-trevor-js CDN
MIT licensed
Sir Trevor JS: Open-source library for customizable, responsive navigation menus.
Tags:- content editing
- rich content editor
- Sir Trevor
Stable version
Copied!
How to start using sir-trevor-js CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with sir-trevor-js CDN - cdnhub.io</title>
<script src="https://cdn.cdnhub.io/sir-trevor-js/0.8.2/sir-trevor.min.js"></script>
</head>
<body>
<button id="animate">Animate</button>
<div id="box"></div>
<script>
const animateButton = document.querySelector('#animate');
const boxElement = document.querySelector('#box');
animateButton.addEventListener('click', () => {
SirTrevor.animate(boxElement, {
width: '200px',
height: '200px',
backgroundColor: 'red',
duration: 1000,
easing: 'easeOutQuad'
});
});
</script>
<style>
#box {
width: 100px;
height: 100px;
background-color: blue;
}
</style>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
0.6.0
0.6.0-beta10
0.6.0-beta2
0.6.0-beta3
0.6.0-beta4
0.6.0-beta5
0.6.0-beta6
0.6.0-beta7
0.6.0-beta8
0.6.0-beta9
0.6.1
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.7.0
0.7.1
0.7.2
0.7.3
0.7.4
0.7.5
0.8.0
0.8.0-beta1
0.8.0-beta2
0.8.0-beta3
0.8.1
0.8.1-beta1
0.8.1-beta10
0.8.1-beta2
0.8.1-beta3
0.8.1-beta4
0.8.1-beta5
0.8.1-beta6
0.8.1-beta7
0.8.1-beta8
0.8.1-beta9
*** 0.8.2
0.8.2-beta2
0.8.3-beta1
0.8.3-beta2
0.8.3-beta3
0.9.0-beta1
0.9.0-beta2
0.9.0-beta3
0.9.0-beta4
0.9.0-beta5
0.9.0-beta6
0.9.0-beta7
0.9.0-beta8