Widgets > [No Target Defined] > Features > Customizing Animation |
You can change how the wijflipcard flips using the animation option. Set the type attribute of the animation option, to customize how to flip the wijflipcard from the front to the back panel. Some other related animation attributes are listed below:
|
|
Complete the following steps:
<!--RequireJs--> <script type="text/javascript" src="http://cdn.wijmo.com/external/require.js"></script> <script type="text/javascript"> requirejs.config({ baseUrl: "http://cdn.wijmo.com/amd-js/3.20143.59", paths: { "jquery": "jquery-1.11.1.min", "jquery-ui": "jquery-ui-1.11.0.custom.min", "jquery.ui": "jquery-ui", "jquery.mousewheel": "jquery.mousewheel.min", "globalize": "globalize.min" } }); </script>
<script id="scriptInit" type="text/javascript">
require(["wijmo.wijflipcard"], function () {
$(document).ready(function () {
$("#flipcard1").wijflipcard({
animation: {
duration:2000,
type: "bounce"
}
});
});
});
</script>
<div id="flipcard1">
<div><center>
<br />
<img src="http://wijmo.com/img/wijmo.png"><br />
This is the frontPanel.
</center></div>
<div><center>
<br /><br />
<br /><br />
This is the backPanel.
</center></div>
</div>