Visualization of focal mechanism was achieved by creating interactive 3D faults with its corresponding beach ball displayed as a 3D sphere and 2D equatorial plane projection which makes it possible to visualize all types of faults and interact with the objects. The application offers the choice of direct input of earthquake data (strike (φ), dip (δ) and rake (λ)) as well as demonstrates movement along the slip vector. In addition, a 3D height map of Croatian was implemented showing focal spheres of selected earthquakes. A user can select and display the appropriate earthquake faults and focal sphere in 2D and 3D. All scenes are made in WebGL using Three.js language (JavaScript) 3D library.