Magic Scroll™ integration
Magic Scroll™ can be installed in a few simple steps. Then you can customize it just how you want it.
Installation
- Download the Magic Scroll™ demo.
- Unzip it and copy the magicscroll folder to your website.
- Reference the CSS and JS files before the </head> of your page. Example:
<link type="text/css" rel="stylesheet" href="magicscroll/magicscroll.css"/>
<script type="text/javascript" src="magicscroll/magicscroll.js"></script>
(If you cannot access the head section of your page, reference the files elsewhere such as the main content of your page.)
- Create a div with a class of MagicScroll and put whatever you want to scroll inside it. Here is a scroll of 6 images, each linking to a URL:
<div class="MagicScroll">
<a href="/page-1/"><img src="example1.jpg"/></a>
<a href="/page-2/"><img src="example2.jpg"/></a>
<a href="/page-3/"><img src="example3.jpg"/></a>
<a href="/page-4/"><img src="example4.jpg"/></a>
<a href="/page-5/"><img src="example5.jpg"/></a>
<a href="/page-6/"><img src="example6.jpg"/></a>
</div>This is how it looks:
Customization
- Wizard
- Upgrade
- Images without links
- Images with links and text
- Text with links
- Choice of tag
- Speed
- Duration
- Looping
- Number of items
- Size
- Arrows
- Border
- Background
- Direction
- Slider
- API / Callbacks
- Combinations
- Multiple scrolls on page
- List of parameters
1. Wizard
Save time! Use the wizard to choose your perfect settings for Magic Scroll™. It's fast and easy.
Each setting is explained on this page. If you get stuck, just contact us and we'll reply ASAP.
2. Upgrade
To remove the red "Please upgrade" message, buy Magic Scroll™ and overwrite the magicscroll.js file with that from your fully licensed version.
Non-commercial sites can apply for a free license.
3. Images without links
The example below uses images only. Magic Scroll™ looks for <a> links by default, so as there are no <a> links in the code, we must add the 'item-tag' JavaScript parameter to tell Magic Scroll™ to scroll all items with <img>. (More explanation of the item-tag is below).
<script type="text/javascript">
MagicScroll.options = {
'item-tag' : 'img'
}
</script>
<div class="MagicScroll">
<img src="example1.jpg"/>
<img src="example2.jpg"/>
<img src="example3.jpg"/>
<img src="example4.jpg"/>
<img src="example5.jpg"/>
<img src="example6.jpg"/>
</div>
4. Images with links and text
The example below uses images, with text and with links to URLs. If you add text to your images, you must also specify height and ideally width too otherwise the images will be scaled down. (The default height is determined as the height of your tallest image).
<script type="text/javascript">
MagicScroll.options = {
'height' : 100,
'width' : 300
}
</script>
<div class="MagicScroll">
<a href="/page-1/"><img src="example1.jpg"/>Chestnut</a>
<a href="/page-2/"><img src="example2.jpg"/>Blue</a>
<a href="/page-3/"><img src="example3.jpg"/>Charcoal</a>
<a href="/page-4/"><img src="example4.jpg"/>Green</a>
<a href="/page-5/"><img src="example5.jpg"/>Pink</a>
<a href="/page-6/"><img src="example6.jpg"/>White</a>
</div>
5. Text with links
The example below scrolls 1 headline of text every 3 seconds (3000 milliseconds).
<script type="text/javascript">
MagicScroll.options = {
'items' : 1,
'speed' : 3000
}
</script>
<div class="MagicScroll" rel="items:1; speed:3000;">
<a href="/page-1/">Place text here</a>
<a href="/page-2/">Format it with CSS as you wish!</a>
<a href="/page-3/">Choose your own style</a>
<a href="/page-4/">You have total control!</a>
</div>
6. Choice of tag
You may scroll items that are inside <a> tags, <img> tags, <div> tags or <p> tags. The default is <a>. If you want to scroll items that do not start with <a>, you must specify what type of item it is.
To scroll a collection of images without links, set the 'item-tag' to img like so:
MagicScroll.options = {
'item-tag' : 'img'
}
</script>
To scroll HTML content within divs, set the 'item-tag' to div like so:
MagicScroll.options = {
'item-tag' : 'div'
}
</script>
7. Speed
Change the amount of time the items are stationary. The default is 5000ms (5000 milliseconds = 5 seconds). Make it faster by reducing the number of milliseconds e.g.
MagicScroll.options = {
'speed' : 2000
}
</script>
To stop the automatic scroll and use arrows only, set the speed to 0:
MagicScroll.options = {
'speed' : 0
}
</script>
8. Duration
Adjust how long the slide effect takes. The default is 1000ms (1 second). To make it faster, decrease the number e.g.
MagicScroll.options = {
'duration' : 500
}
</script>
9. Looping
The scroll will seamlessly continue from the last image to the first image. Alternatively, you can scroll it all the way back to the beginning like so:
MagicScroll.options = {
'loop' : 'restart'
}
</script>
10. Number of items
Three items are shown by default. You can change this with the 'items' parameter:
MagicScroll.options = {
'items' : 5
}
</script>
Each time it scrolls, it will move by the same number of items on display, i.e. 5 in the example above. Use the 'step' parameter if you want to scroll more or fewer items, for example:
MagicScroll.options = {
'items' : 5,
'step' : 1
}
</script>
11. Size
The height and width of the scroll area is automatically calculated to fit the number of items in your scroll and the dimensions of those items. You can override this by choosing your own dimensions in pixels. Example:
MagicScroll.options = {
'width' : 350,
'height' : 90
}
</script>
12. Arrows
Change the default arrow design to one of the other designs included in the graphics folder, or design your own!
To change the arrows, edit the image URL within the magicscroll.css file. This is the default CSS:
width: 66px;
height: 66px;
cursor: pointer;
background: url('graphics/arrows06.png');
padding: 0px !important;
}
You can also edit the CSS to change the background color, padding, arrow dimensions and cursor.
These 4 arrow designs come with Magic Scroll™:

To make the arrows brighter or more subtle, adjust the opacity e.g.
<script type="text/javascript">
MagicScroll.options = {
arrows-opacity: '40%',
arrows-hover-opacity: '80%'
}
</script>
13. Border
To add a border around your scroll, edit the MagicScroll style in magicscroll.css. For example:
border: 1px #545454;
}
14. Background
The default background color is transparent. To change this, edit the MagicScroll style in magicscroll.css. For example:
background: #efefef;
}
15. Direction
Change the direction of the scroll by setting the 'direction' parameter to top, right, bottom or left. For example:
MagicScroll.options = {
'direction' : 'top'
}
</script>
16. Slider
To display a scroll bar below your images, set 'slider' to top, right, bottom or left. The default is 'false' (not shown). To show a slider underneath, do this:
MagicScroll.options = {
'slider' : 'bottom'
}
</script>
17. API / Callbacks
Use the API to trigger AJAX actions when the user does things on the page or clicks something.
- MagicScroll.init() - find and start all scrolls on the page.
- MagicScroll.init(yourdiv) - find and start scroll with a particular div id.
- MagicScroll.stop() - stop all scrolls on the page.
- MagicScroll.stop(yourdiv) - stop a particular scroll by specifying its div id.
- MagicScroll.start(yourdiv) - start a particular scroll by specifying its div id.
- MagicScroll.refresh() - reload all scrolls on the page
- MagicScroll.refresh(yourdiv) - reload a particular scroll by specifying its div id.
- MagicScroll.pause(yourdiv) - pause automatic scrolling on a particular div.
- MagicScroll.play(yourdiv) - start automatic scrolling on a particular div.
Example:
<script type="text/javascript">
MagicScroll.play('id-of-your-choice');
</script>
<div class="MagicScroll" id="id-of-your-choice">
<img src="example1.jpg"/>
<img src="example2.jpg"/>
<img src="example3.jpg"/>
<img src="example4.jpg"/>
</div>
18. Combinations
You can use Magic Scroll™ with our other tools. View some examples.
- Magic Zoom Plus™
- Magic Zoom™
- Magic Magnify Plus™
- Magic Magnify™
- Magic Thumb™
- Magic Touch™
First, create your scroll. Then insert a rel with a zoom-id the same as the id of the image you want to zoom. This example has 4 images, each with a small, medium and big size:
<a rel="zoom-id:shoes" href="crocs1big.jpg" rev="crocs1medium.jpg"><img src="crocs1small.jpg" /></a>
<a rel="zoom-id:shoes" href="crocs1big.jpg" rev="crocs1medium.jpg"><img src="crocs1small.jpg" /></a>
<a rel="zoom-id:shoes" href="crocs1big.jpg" rev="crocs1medium.jpg"><img src="crocs1small.jpg" /></a>
<a rel="zoom-id:shoes" href="crocs1big.jpg" rev="crocs1medium.jpg"><img src="crocs1small.jpg" /></a>
</div>
<a class="MagicZoomPlus" id="shoes" href="crocs1big.jpg"><img src="crocs1medium.jpg" /></a>
The example above will scroll the 4 small images with Magic Scroll™ and zoom the medium sized images with Magic Zoom Plus™. It is perfect if you have lots of thumbnails of a product and don't want them to take up lots of space on your page.
19. Multiple scrolls on page
You can place any number of scrolls on a web page. Each scroll can have different settings.
To apply the same parameters to all scrolls on your page, use MagicScroll.options. For example:
MagicScroll.options = {
'items': 1,
'height': 50
};
</script>
To apply different parameters to a particular scroll, give it a unique id e.g. MyStyle:
and then specify its parameters like in this example:
MagicScroll.options = {
'items': 1,
'height': 50
};
MagicScroll.extraOptions.MyStyle = {
'items': 3,
'height': 'auto',
'speed': 500
};
</script>
Get help
If you are stuck, use the wizard which will output the HTML you need.
If you are still stuck, please contact us and we'll help you.
20. Parameters
| Parameter | Default | Options | Description |
|---|---|---|---|
| speed | 5000 | milliseconds | Time between each scroll (0 = manual) |
| duration | 1000 | milliseconds | Duration of each scroll |
| loop | 'continue' | 'restart' / 'continue' | After last item, continue or go back to beginning |
| width | 'auto' | 'auto' or numeric | Width of entire scroll area (pixels) |
| height | 'auto' | 'auto' or numeric | Height of entire scroll area (pixels) |
| item-width | 'auto' | 'auto' or numeric | Width of each item (pixels) |
| item-height | 'auto' | 'auto' or numeric | Height of each item (pixels) |
| items | 3 | numeric | Number of items shown at once |
| step | 3 | numeric | Number of items moved on each scroll |
| arrows | 'outside' | 'false' / 'inside' / 'outside' | Show arrows inside, outside or hidden |
| arrows-opacity | 60 | 0-100 | Opacity of arrows |
| arrows-hover-opacity | 100 | 0-100 | Opacity of arrows on mouseover |
| direction | 'right' | 'top' / 'right' / 'bottom' / 'left' | Direction of scroll |
| slider | 'false' | 'false' / 'top' / 'right' / 'bottom' / 'left' | Slider position (not shown by default) |
| slider-size | '10%' | numeric or percent | Height of slider relative to the scroll area |
| item-tag | 'A' | 'A' / 'IMG' / 'DIV' / 'P' | HTML tag to be recognized as an item |
30 day money-back guarantee.
Free license for non-commercial use
30 minutes free technical support.
Download a module:
- Magic Scroll™ for CS-Cart
- Magic Scroll™ for Magento
- Magic Scroll™ for Joomla
- Magic Scroll™ for VirtueMart
- Magic Scroll™ for PrestaShop
- Magic Scroll™ for Zen Cart
- Magic Scroll™ for CubeCart
- Magic Scroll™ for OpenCart
- Magic Scroll™ for LiteCommerce
- Magic Scroll™ for WordPress
- Ecommerce Templates
- ekmPowershop
- NetSuite
- AspDotNetStorefront
- BlueVoda
- Miva Merchant
- Shopify

