Khoảng giá
Từ: 0 triệu
Đến: Không giới hạn
ỐNG KÍNH SIGMA 24-70mm F2.8 DG OS HSM (ART) FOR CANON
Giá giao động:
28,900,000đ
ỐNG KÍNH SIGMA 35mm F1.4 DG DN ART FOR NIKON (NOTE: TRÙNG SP)
Giá từ:
7,990,000đ
Ống kính Sigma 17-50mm f/2.8 EX DC OS HSM (For Canon)
Giá từ:
6,580,000đ
Ống kính Sigma 35mm f/1.4 DG HSM Art For Nikon | Chính hãng
Giá giao động:
17,900,000đ
ỐNG KÍNH SIGMA 15-30mm F3.5-4.5 DG FOR CANON
Giá từ:
3,000,000đ
SIGMA AF 24-70mm F2.8 IF EX DG HSM FOR NIKON (NON ART)
Giá từ:
5,490,000đ
ỐNG KÍNH SIGMA 70-200mm F2.8 APO EX DG OS HSM
Vui lòng gọi
ỐNG KÍNH SIGMA DC 18-125mm F3.8-5.6 HSM
Vui lòng gọi
Ống kính Sigma 17-50mm f/2.8 EX DC OS HSM (For Canon) | Chính hãng
Giá từ:
6,580,000đ
Ống kính Sigma 17-50mm f/2.8 EX DC OS HSM (For Nikon) | Chính hãng
Giá từ:
6,580,000đ
Ống kính Sigma 17-50mm f/2.8 EX DC OS HSM (For Nikon)
Giá từ:
6,580,000đ
ỐNG KÍNH SIGMA DC 30mm F1.4 EX HSM (NON-ART) FOR NIKON
Giá giao động:
4,490,000đ
ỐNG KÍNH SIGMA DC 30mm F1.4 EX HSM (NON-ART) FOR CANON
Giá giao động:
4,490,000đ
Ống kính Sigma 17-70mm f/2.8-4 DC Macro OS HSM For Nikon | Chính hãng
Giá giao động:
7,990,000đ
Ống kính Sigma 18-200mm f/3.5-6.3 DC Macro OS HSM Contemporary For Nikon | Chính hãng
Giá giao động:
8,800,000đ
Ống kính Sigma 18-200mm F3.5-6.3 DC Macro OS HSM For Nikon | Chính hãng
Giá giao động:
8,800,000đ
Ống kính Sigma 30mm f/1.4 DC HSM Art For Nikon | Chính hãng
Giá giao động:
9,500,000đ
ỐNG KÍNH SIGMA DC 30mm F1.4 HSM (ART) FOR CANON
Giá giao động:
11,290,000đ
ỐNG KÍNH SIGMA DC 30mm F1.4 HSM (ART) FOR NIKON
Giá giao động:
11,290,000đ
Ống kính Sigma 70mm f/2.8 EX DG Macro For Nikon | Chính hãng
Giá giao động:
11,900,000đ
Ống kính Sigma 18-300mm f/3.5-6.3 DC Macro OS HSM Contemporary For Nikon | Chính hãng
Giá giao động:
12,800,000đ
Ống kính Sigma 10mm f/2.8 EX DC HSM Fisheye For Nikon | Chính hãng
Giá giao động:
14,029,000đ
Ống kính Sigma 15mm f/2.8 EX DG Diagonal Fisheye For Nikon | Chính hãng
Giá giao động:
14,900,000đ
Ống kính Sigma 18-35mm f/1.8 DC HSM Art For Canon
Giá giao động:
15,700,000đ
Ống kính Sigma 18-35mm f/1.8 DC HSM Art For Nikon F | Chính hãng
Giá giao động:
15,700,000đ
Ống kính Sigma 18-35mm f/1.8 DC HSM Art For Nikon
Giá giao động:
15,700,000đ
Ống kính Sigma 8-16mm F4.5-5.6 DC HSM For Nikon | Chính hãng
Giá giao động:
15,900,000đ
Ống kính Sigma 24mm f/1.4 DG HSM Art For Nikon
Giá giao động:
17,390,000đ
Ống kính Sigma 24mm f/1.4 DG HSM Art For Nikon | Chính hãng
Giá giao động:
17,390,000đ
Ống kinh Sigma 100-400mm f/5-6.3 DG OS HSM Contemporary For Nikon F | Chính hãng
Giá giao động:
17,500,000đ
Ống kính Sigma 24mm f/1.4 DG HSM Art For Canon | Chính hãng
ỐNG KÍNH SIGMA 24mm F1.4 DG HSM (ART) FOR CANON
ỐNG KÍNH SIGMA 24mm F1.4 DG HSM (ART) FOR NIKON
ỐNG KÍNH SIGMA 8mm F3.5 CIRCULAR FISHEYE EX DG FOR NIKON
Ống kính Sigma 50mm f/1.4 DG HSM Art For Nikon
Ống kính Sigma 35mm f/1.4 DG HSM Art For Canon
Ống kính Sigma 50mm f/1.4 DG HSM Art For Nikon | Chính hãng
Ống kính Sigma 100-400mm f/5-6.3 DG OS HSM Contemporary For Canon EF | Chính hãng
Ống kính Sigma 20mm f/1.4 DG HSM Art For Nikon | Chính hãng
Ống kính Sigma 8mm f/3.5 EX DG Circular Fisheye For Nikon | Chính hãng
ỐNG KÍNH SIGMA 50mm F1.4 DG HSM (ART) FOR NIKON
ỐNG KÍNH SIGMA 50mm F1.4 DG HSM (ART) FOR CANON
ỐNG KÍNH SIGMA DC 18-35mm F1.8 HSM (ART) FOR CANON
ỐNG KÍNH SIGMA DC 18-35mm F1.8 HSM (ART) FOR NIKON
ỐNG KÍNH SIGMA 24-35mm F2 DG HSM (ART) FOR CANON
ỐNG KÍNH SIGMA 24-35mm F2 DG HSM (ART) FOR NIKON
Ống kính Sigma 24-105mm f/4 DG OS HSM Art For Nikon | Chính hãng
ỐNG KÍNH SIGMA 24-105mm F4 DG OS HSM (ART) FOR CANON
ỐNG KÍNH SIGMA 24-105mm F4 DG OS HSM (ART) FOR NIKON
Ống kính Sigma 24-35mm f/2 DG HSM Art For Nikon F |Chính hãng
Ống kính Sigma 24-35mm f/2 DG HSM Art For Canon EF | Chính hãng
ỐNG KÍNH SIGMA 35mm F1.4 DG HSM (ART) FOR CANON
ỐNG KÍNH SIGMA 35mm F1.4 DG HSM (ART) FOR NIKON
Ống kính Sigma 150-600mm f/5-6.3 DG OS HSM For Nikon F | chính hãng
ỐNG KÍNH SIGMA 85mm F1.4 DG HSM (ART) FOR CANON
ỐNG KÍNH SIGMA 85mm F1.4 DG HSM (ART) FOR NIKON
Ống kính Sigma 85mm F/1.4 DG HSM Art For Nikon
Ống kính Sigma 85mm F/1.4 DG HSM Art For Nikon | Chính hãng
Ống kính Sigma 50-100mm f/1.8 DC HSM Art For Nikon | Chính hãng
ỐNG KÍNH SIGMA 150-600mm F/5-6.3 DG OS HSM FOR CANON
Ống kính Sigma 150mm f/2.8 EX APO DG HSM Macro For Nikon | Chính hãng
Ống kính Sigma 28mm f/1.4 DG HSM Art For Nikon | Chính hãng
Ống kính Sigma 40mm f/1.4 DG HSM Art For Nikon | Chính hãng
Ống Kính Sigma 24-70mm f/2.8 DG OS HSM Art for Nikon | Chính hãng
Ống kính Sigma 24-70mm f/2.8 DG OS HSM Art for Canon
ỐNG KÍNH SIGMA 14-24mm F2.8 DG HSM (ART) FOR NIKON
ỐNG KÍNH SIGMA 14-24mm F2.8 DG HSM (ART) FOR CANON
ỐNG KÍNH SIGMA 24-70mm F2.8 DG OS HSM (ART) FOR NIKON
ỐNG KÍNH SIGMA 70-200mm F2.8 APO DG MACRO HSM FOR NIKON
Ống kính Sigma 180mm F2.8 APO Macro EX DG OS HSM For Nikon | Chính hãng
Ống kính Sigma 14mm f/1.8 DG HSM Art For Nikon | Chính hãng
Ống kính Sigma 12-24mm f/4 DG HSM ART For Nikon
Ống kính Sigma 12-24mm f/4 DG HSM ART For Nikon | Chính hãng
ỐNG KÍNH SIGMA 12-24mm F4 DG HSM (ART) FOR NIKON
ỐNG KÍNH SIGMA 12-24mm F4 DG HSM (ART) FOR CANON
Ống kính Sigma 150-600mm f/5-6.3 DG OS HSM Sports For Nikon F| Chính hãng
Ống kính Sigma 60-600mm f/4.5-6.3 DG OS HSM Sports For Nikon F | Chính hãng
Ống kính Sigma 60-600mm f/4.5-6.3 DG OS HSM Sports For Canon EF | Chính hãng
Ống kính Sigma 120-300mm f/2.8 DG OS HSM Sports For Nikon F | Chính hãng
Ống kính Sigma 500mm f/4 DG OS HSM for Nikon | Chính hãng
Ống kính Sigma 800mm f/5.6 EX DG HSM APO for Nikon | Chính hãng
Ống kính Sigma 300-800mm f/5.6 EX DG HSM For Nikon F | Chính hãng
SIGMA 30mm F1.4 EX DC HSM FOR NIKON
Ống Kính Sigma 17-70mm F2.8-4.5 DC HSM For Nikon
ỐNG KÍNH SIGMA 70-300mm F4-5.6 DL MACRO SUPER
ỐNG KÍNH SIGMA DC 17-50mm F2.8 EX OS HSM FOR CANON
ỐNG KÍNH SIGMA DC 17-50mm F2.8 EX OS HSM FOR NIKON
ỐNG KÍNH SIGMA 28mm F1.8 EX DG ASP MACRO FOR CANON
ỐNG KÍNH SIGMA DC 10-20mm F4-5.6 EX HSM
ỐNG KÍNH SIGMA DC 8-16mm F4.5-5.6 HSM FOR CANON
ỐNG KÍNH SIGMA 12-24mm F4.5-5.6 II DG HSM FOR CANON
ỐNG KÍNH SIGMA 12-24mm F4.5-5.6 II DG HSM FOR NIKON
ỐNG KÍNH SIGMA AF 24-70mm F2.8 IF EX DG HSM FOR NIKON
(function () {
const requestAnimFrame = (function () {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function (callback) {
window.setTimeout(callback, 1000 / 60);
};
})();
const hieuUngPhaoHoa = {
canvas: document.getElementById('hieuUngPhaoHoa__canvas'),
ctx: null,
cw: window.innerWidth,
ch: window.innerHeight,
fireworks: [],
particles: [],
colors: [0, 60, 300], // Mảng các màu
hue: 0,
timerTotal: 30, // Giảm thời gian giữa các lần bắn
timerTick: 0,
isActive: true, // Biến để kiểm soát trạng thái hoạt động
init: function () {
this.ctx = this.canvas.getContext('2d');
this.canvas.width = this.cw;
this.canvas.height = this.ch;
this.loop();
// Tự động dừng sau 5 giây
setTimeout(() => {
this.isActive = false;
}, 5000);
},
calculateDistance: function (p1x, p1y, p2x, p2y) {
const xDistance = p1x - p2x;
const yDistance = p1y - p2y;
return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));
},
random: function (min, max) {
return Math.random() * (max - min) + min;
},
createParticles: function (x, y) {
let particleCount = 30;
// Chọn màu ngẫu nhiên từ mảng
this.hue = this.colors[Math.floor(Math.random() * this.colors.length)];
while (particleCount--) {
this.particles.push(new Particle(x, y, this));
}
},
// Main loop
loop: function () {
if (!this.isActive && this.fireworks.length === 0 && this.particles.length === 0) {
return; // Dừng animation khi hết pháo hoa
}
requestAnimFrame(this.loop.bind(this));
this.hue += 0.5;
this.ctx.globalCompositeOperation = 'destination-out';
this.ctx.fillStyle = 'rgba(0, 0, 0, 0.5)';
this.ctx.fillRect(0, 0, this.cw, this.ch);
this.ctx.globalCompositeOperation = 'lighter';
let i = this.fireworks.length;
while (i--) {
this.fireworks[i].draw();
this.fireworks[i].update(i);
}
i = this.particles.length;
while (i--) {
this.particles[i].draw();
this.particles[i].update(i);
}
// Tự động bắn pháo hoa nếu đang hoạt động
if (this.isActive && this.timerTick >= this.timerTotal) {
this.fireworks.push(new Firework(
this.cw / 2, this.ch,
this.random(0, this.cw),
this.random(0, this.ch / 2),
this
));
this.timerTick = 0;
} else {
this.timerTick++;
}
}
};
// Firework class
class Firework {
constructor(sx, sy, tx, ty, main) {
this.main = main;
this.x = sx;
this.y = sy;
this.sx = sx;
this.sy = sy;
this.tx = tx;
this.ty = ty;
this.distanceToTarget = main.calculateDistance(sx, sy, tx, ty);
this.distanceTraveled = 0;
this.coordinates = [];
this.coordinateCount = 3;
while (this.coordinateCount--) {
this.coordinates.push([this.x, this.y]);
}
this.angle = Math.atan2(ty - sy, tx - sx);
this.speed = 2;
this.acceleration = 1.05;
this.brightness = main.random(50, 70);
this.targetRadius = 1;
}
update(index) {
this.coordinates.pop();
this.coordinates.unshift([this.x, this.y]);
if (this.targetRadius < 8) {
this.targetRadius += 0.3;
} else {
this.targetRadius = 1;
}
this.speed *= this.acceleration;
const vx = Math.cos(this.angle) * this.speed;
const vy = Math.sin(this.angle) * this.speed;
this.distanceTraveled = this.main.calculateDistance(
this.sx, this.sy, this.x + vx, this.y + vy
);
if (this.distanceTraveled >= this.distanceToTarget) {
this.main.createParticles(this.tx, this.ty);
this.main.fireworks.splice(index, 1);
} else {
this.x += vx;
this.y += vy;
}
}
draw() {
this.main.ctx.beginPath();
this.main.ctx.moveTo(
this.coordinates[this.coordinates.length - 1][0],
this.coordinates[this.coordinates.length - 1][1]
);
this.main.ctx.lineTo(this.x, this.y);
this.main.ctx.strokeStyle = `hsl(${this.main.hue}, 100%, ${this.brightness}%)`;
this.main.ctx.stroke();
}
}
// Particle class
class Particle {
constructor(x, y, main) {
this.main = main;
this.x = x;
this.y = y;
this.coordinates = [];
this.coordinateCount = 5;
while (this.coordinateCount--) {
this.coordinates.push([this.x, this.y]);
}
this.angle = main.random(0, Math.PI * 2);
this.speed = main.random(1, 10);
this.friction = 0.95;
this.gravity = 1;
this.hue = main.random(main.hue - 20, main.hue + 20);
this.brightness = main.random(50, 80);
this.alpha = 1;
this.decay = main.random(0.015, 0.03);
}
update(index) {
this.coordinates.pop();
this.coordinates.unshift([this.x, this.y]);
this.speed *= this.friction;
this.x += Math.cos(this.angle) * this.speed;
this.y += Math.sin(this.angle) * this.speed + this.gravity;
this.alpha -= this.decay;
if (this.alpha <= this.decay) {
this.main.particles.splice(index, 1);
}
}
draw() {
this.main.ctx.beginPath();
this.main.ctx.moveTo(
this.coordinates[this.coordinates.length - 1][0],
this.coordinates[this.coordinates.length - 1][1]
);
this.main.ctx.lineTo(this.x, this.y);
this.main.ctx.strokeStyle = `hsla(${this.hue}, 100%, ${this.brightness}%, ${this.alpha})`;
this.main.ctx.stroke();
}
}
// Khởi chạy khi trang load xong
window.addEventListener('load', () => hieuUngPhaoHoa.init());
})();