records of learning path on jQuery !
basic code and syntax
- 寶可夢圖片選取: 使用siblings()和end()索引元素位置並採用外掛Bootstrap CSS Styles修改樣式
- 星星評點: 使用on()/off()方法完成事件繫結並以prop()方法設定圖片src屬性以達成變色效果
- 廣告輪播: 以變數計算圖片滑動距離、.css()的方法設定透明度防止其他圖片顯示,並使用mouseenter+mouseleave完成動作判定與暫停
- 圖片動態調整: 計算物件與瀏覽器長寬比例,並隨著resize等比例縮放,同時透過resize觸發調整物件上下左右置中的效果