
- Foundation 通用
- Foundation - 全域性樣式
- Foundation - Sass
- Foundation - JavaScript
- Foundation - JavaScript 實用程式
- Foundation - 媒體查詢
- Foundation - Grid
- Foundation - Flex Grid
- Foundation - 表單
- Foundation - 可見性類
- Foundation - 基本排版
- Foundation - 排版幫助程式
- Foundation - 基本控制元件
- Foundation - 導航
- Foundation - 容器
- Foundation - 媒體
- Foundation - 外掛
- Foundation SASS
- Foundation - Sass 函式
- Foundation - Sass Mixins
- Foundation 庫
- Foundation - Motion UI
- Foundation 實用資源
- Foundation - 快速指南
- Foundation - 實用資源
- Foundation - 討論
Foundation - Motion UI 過渡
描述
Foundation 透過使用 Motion UI 庫建立的過渡類來提供過渡效果。
示例
以下示例演示了在 Foundation 中使用轉換 −
<!doctype html> <head> <meta charset = "utf-8" /> <meta http-equiv = "x-ua-compatible" content = "ie = edge" /> <meta name = "viewport" content = "width = device-width, initial-scale = 1.0" /> <title>Motion UI Transition</title> <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css"> <link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/motion-ui/1.1.1/motion-ui.css"> <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script> <script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script> </head> <body> <h2>Motion UI Transition Example</h2> <p><a data-toggle = "toggle_panel">Click here to toggle the panel</a></p> <div class = "callout" id = "toggle_panel" data-toggler data-animate = "hinge-in-from-bottom spin-out"> <h2>Foundation</h2> <p>Foundation is semantic, readable, flexible, and completely customizable.</p> </div> <script> $(document).ready(function() { $(document).foundation(); }) </script> </body> </html>
輸出
讓我們執行以下步驟,看看上面給定的程式碼是如何工作的 −
儲存以上給定的 html 程式碼foundation_transitions.html檔案。
在瀏覽器中開啟此 HTML 檔案,顯示如下輸出。
foundation_motion_ui.htm
廣告