
內容簡介
想讓網站觀眾觀賞視頻嗎?觀看視頻通常會限制觀眾查看網頁的其他部分,但是 Shrinking Video(縮小視頻)可以解決這個問題,因為它會在使用者滾動視頻後,將視頻縮小到畫面的右上角。當使用者滾回頁面時,視頻會變回正常大小並返回正常位置。
特色
可使用短代碼 [shrinkingvideo] 來指定要縮小的視頻
可以控制視頻縮小的位置(右上、左上、左下、右下)
支援任何 WordPress 的內嵌系統支援的視頻
短代碼
Shrinking Video 使用短代碼 [shrinkingvideo] 以便指定要對哪個視頻進行更改。
以下短代碼接受 5 個屬性。
[shrinkingvideo src=”” height=”” width=”” class=”” position=””]
src 屬性為必填項,應為視頻的 URL。
height 屬性為可選項,用於定義視頻的高度。預設值爲 394。
width 屬性為可選項,用於定義視頻的寬度。預設值爲 700。
class 屬性為可選項,用於對視頻的包裝元素應用 CSS 類。
position 屬性為可選項,用於指定縮小的視頻顯示在哪裡。可接受值為 "top right"、"top left"、"bottom left"、"bottom right",預設值爲 "top right"。
外掛標籤
開發者團隊
原文外掛簡介
Have a video that you want your website viewers to watch? Watching a video would typically restrict the viewer from viewing the rest of the webpage. Shrinking video solves that problem by shrinking the video to the upper right corner of the screen once the user scrolls past the video. Once the user scrolls back up to the page the video unshrinks and returns to its normal position.
Features
Shortcode [shrinkingvideo] to specify which video to shrink
Control over where the video is shrunk. ( top right, top left, bottom left, bottom right )
Supports any video supported by wordpresses embed system
Shortcode
Shrinking Video uses the shortcode [shrinkingvideo] in order to specify which video to apply the changes to.
The following shortcode accepts 5 attributes.
[shrinkingvideo src=”” height=”” width=”” class=”” position=””]
The src attribute is required and should be the url to the video.
The height attribute is optional and is used to define the height of the video. The default value is 394.
The width attribute is optional and is used to define the width of the video. The default value is 700.
The class attribute is optional and is used to apply a css class to the videos wrapper element.
The position attribute is optional and is used to specify where to display the shrunked video. Accepts values “top right”, “top left”, “bottom left”, “bottom right”. The default value is “top right”.
