Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
<!DOCTYPE html>
<meta charset='utf-8'>
<title>Warp Drive - jQuery Example 1</title>
<script src=''></script>
<script src='js/jquery.warpdrive.min.js'></script>
<style type='text/css'>
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
box-sizing: border-box;
body {
overflow: hidden;
background-color: #CCC;
#holder {
position: absolute;
width: 480px;
height: 480px;
$( document ).ready( function() {
//Settings - params for WarpDrive
var settings = {
width: 480,
height: 480,
autoResize: false,
autoResizeMinWidth: null,
autoResizeMaxWidth: null,
autoResizeMinHeight: null,
autoResizeMaxHeight: null,
addMouseControls: true,
addTouchControls: true,
hideContextMenu: true,
starCount: 6666,
starBgCount: 2222,
starBgColor: { r:155, g:255, b:0 },
starBgColorRangeMin: 10,
starBgColorRangeMax: 60,
starColor: { r:155, g:255, b:0 },
starColorRangeMin: 80,
starColorRangeMax: 100,
starfieldBackgroundColor: { r:155, g:0, b:255 },
starDirection: -1,
starSpeed: 10,
starSpeedMax: 200,
starSpeedAnimationDuration: 5,
starFov: 300,
starFovMin: 200,
starFovAnimationDuration: 5,
starRotationPermission: true,
starRotationDirection: 1,
starRotationSpeed: 0.0,
starRotationSpeedMax: 1.5,
starRotationAnimationDuration: 2,
starWarpLineLength: 1.0,
starWarpTunnelDiameter: 100,
starFollowMouseSensitivity: 0.015,
starFollowMouseXAxis: true,
starFollowMouseYAxis: true
//var warpdrive = new WarpDrive( document.getElementById( 'holder' ) );
var warpdrive = new WarpDrive( document.getElementById( 'holder' ), settings );
//$( '#holder' ).warpDrive();
//$( '#holder' ).warpDrive( settings );
} );
<div id='holder'></div>