/fixedto

A jQuery plugin to positionate fixed an element and rotate it.

Primary LanguageJavaScript

jquery.fixedTo

A jQuery plugin to positionate fixed an element, if the position is left or right, the element rotates. It possible hide / show the element.

Calling

<script type="text/javascript" src="jquery.fixedTo.min.js"></script>
<script type="text/javascript">
  $(".myelement").fixedTo(); 
</script>

Parameters

Name Default Description
Position Top Positionate the element on the screen. Values: top, right, bottom, left.
Align Center Align the element. Values: left, center, right.
Hide True Hide or show the element.
Height_hide 15 Height in pixels visible for the element when is hide.

Calling with parameters

$(".myelement").fixedTo({
  "position": "left",
  "align": "center",
  "hide": true,
  "height_hide": 8
});

Example

Additional

  • Required jQuery
  • Browser compatibility: Firefox 3+, Chrome 4+, Safari 4+, Internet Explorer 7+
  • Created by @nnatali