create a mango drink website home pahe make it professional and looks good and use tree js and all to make it more attractive and 3d effects in the website and scolla like figma effects i want make it attrctive and llooks good use good imahges also
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Creating a professional and visually appealing website for a mango drink brand with 3D effects, animations, and modern design requires a combination of HTML, CSS, JavaScript, and libraries like Three.js for 3D effects and GSAP (GreenSock Animation Platform) for smooth animations. Below is a step-by-step guide to help you build such a website. I'll also include tips for achieving a Figma-like scroll effect and using high-quality images.
Step 1: Project Setup
Tools and Libraries:
HTML/CSS/JavaScript: For structure, styling, and interactivity.
Three.js: For 3D effects (e.g., a rotating mango or drink bottle).
GSAP: For smooth scroll animations and Figma-like effects.
High-Quality Images: Use royalty-free image platforms like Unsplash, Pexels, or create custom graphics on Figma or Adobe XD.
Fonts: Use modern, clean fonts like Poppins, Montserrat, or Open Sans (available via Google Fonts).
Use modern CSS to create a clean, professional, and visually appealing design. Incorporate a tropical color palette (e.g., shades of orange, yellow, and green).
Use Three.js to create a 3D rotating mango or drink bottle in the hero section and GSAP for smooth scroll animations.
javascript
// Three.js Setup
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / 2 / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ alpha: true });
renderer.setSize(window.innerWidth / 2, window.innerHeight);
document.getElementById('three-canvas').appendChild(renderer.domElement);
// Add a 3D Mango (You can use a 3D model or create a simple geometry)
const geometry = new THREE.SphereGeometry(1, 32, 32);
const texture = new THREE.TextureLoader().load('assets/images/mango-texture.jpg'); // Add a mango texture
const material = new THREE.MeshBasicMaterial({ map: texture });
const mango = new THREE.Mesh(geometry, material);
scene.add(mango);
// Lighting
const light = new THREE.PointLight(0xffffff, 1, 100);
light.position.set(10, 10, 10);
scene.add(light);
// Camera Position
camera.position.z = 5;
// Animation Loop
function animate() {
requestAnimationFrame(animate);
mango.rotation.x += 0.01;
mango.rotation.y += 0.01;
renderer.render(scene, camera);
}
animate();
// Resize Handler
window.addEventListener('resize', () => {
renderer.setSize(window.innerWidth / 2, window.innerHeight);
camera.aspect = window.innerWidth / 2 / window.innerHeight;
camera.updateProjectionMatrix();
});
// GSAP Scroll Animations (Figma-like effects)
gsap.from('.hero-content', {
opacity: 0,
y: 100,
duration: 1.5,
ease: 'power3.out'
});
gsap.from('.product-card', {
scrollTrigger: {
trigger: '.products',
start: 'top 80%',
},
opacity: 0,
y: 50,
stagger: 0.3,
duration: 1,
ease: 'power3.out'
});
gsap.from('.about', {
scrollTrigger: {
trigger: '.about',
start: 'top 80%',
},
opacity: 0,
y: 50,
duration: 1,
ease: 'power3.out'
});
Step 5: Adding 3D Models
For a more realistic 3D effect, use a 3D model of a mango or drink bottle in .glb or .gltf format. You can create or download these models from platforms like: